📄 87.txt
字号:
Modular code
Modular code keeps implementations isolated so that they depend on other code as little as possible. Though modular code does not affect how well your code executes, you will get many benefits by writing code this way, including the ability to easily modify, enhance, and debug the code.
Mouse Motion events
Mouse Motion events are special because they are delivered using a listener interface that is different from normal Mouse events.
Narrowing
The process of modifying a type. For primitives, narrowing means loss of precision, and for objects it means loss of generality.
Native methods
Native indicates that a method is written in a platform-dependent language to perform a platform specific function that cannot be handled in Java. You will not need to know how to use native methods for the exam, other than knowing that native is a reserved keyword.
Notify() method
The methods wait() and notify() are instance methods of an object. In the same way that every object has a lock, every object has a list of threads that are waiting for a signal related to the object. A thread gets on this list by executing the wait() method of the object. From that moment, it does not execute any further instructions until some other thread calls the notify() method of the same object.
Object
Once the class is instantiated it becomes an object (sometimes referred to as an instance).
Overloaded methods
Methods are overloaded when there are multiple methods in the same class with the same names but with different parameter lists.
Overridden methods
Methods in the parent and subclasses with the same name, parameter list, and return type are overridden.
Package
A package is an entity that groups classes together. The name of the package must reflect the directory structure used to store the classes in your package. The subdirectory begins in any directory indicated by the class path environment variable.
PaintEvent
Paint events are used internally to ensure serialization of paint operations in the awt event thread. They are not intended to be used like other events.
Panel
A panel is by far the simplest and most common of the AWT container classes.
Parent class
A parent class is a class from which another class is derived. See also Base class.
Permanent focus events
Permanent focus events indicate that another component has gained the focus.
Phantom object
A phantom object is one that has been finalized, but whose memory has not yet been made available for another object.
Phantom reference
Phantom references provide a means of delaying the reuse of memory occupied by an object, even if the object itself is finalized. Phantom references are a bit different from soft and weak references. First off, phantom references track memory rather than objects. Secondly, you can never actually get to the object that a phantom reference references.
Primitive literal A primitive literal is merely a source code representation of the primitive data types.
Primitives Primitives can be a fundamental instruction, operation, or statement. They must be initialized before you attempt to use them (though not necessarily on the same line of code).
Private members Private members are members of a class that cannot be accessed by any class other than the class in which it is declared.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -