Two methods for implementing threads 1. Use the runnable interface to separate the CPU, code, and data, form a clear model, can also inherit from other classes; keep the program style consistency. 2. Inheritance from Thread class cannot be inherited from other classes; writing simple, you can directly manipulate threads without using thread.currentthread (). Several cases of using method parameters 1. The basic type of parameter (digital or Boolean value) 2 can not be modified. Method can change the status of the object parameters 3. Method cannot make an object parameter point to a new object source file must be The name of the PUBLIC class is the same. Only one public class can be included in a source file, but can contain any number of non-public classes.
An important difference between constructors and other methods is that the constructor can only be used with the New operator. The constructor cannot be applied to an existing object to reset the real illustrated field.
The replication constructor allows different objects with the same data, but it points to the same object.
A abstract method can be considered a contour or a convention that indicates the method of its subclass must implement, but the specific implementation is left to subclasses.
ArrayList class efficiency is higher than VECTOR, can be replaced.
You can use a way to change the number parameter using one definition in the org.oma.corba package.
Any occlusion of function pointers in C should consider using the interfaces in Java.
The Java event model is a strong type: the event can only be sent to the object capable of handling it, which is within the monitoring of the compiler.
Java uses polymorphic or reflections to achieve multi-threaded or reflex or delegate to achieve multi-threaded and callbacks using polymorphism or reflection or delegate.
In Java and C #, the memory allocated in the heap is released by the garbage collection mechanism, and the memory allocated in the stack is released by the filling operation after the code block is executed.
When you use AWT or SWING to develop GUI, it is best not to use both 1.swing components. Swing components are lightweight and the AWT components will be mixed for HeavyWeight. It may cause z-Order misfortune 2. Cause Swing to optimize the land, make The speed is slow.
Unlike array indexes, the column number of the database starts from 1.
The string is not changed: Once a string object is created, the text represented by the string cannot change. If you need to modify the character in any position in the string, you can use java.lang.StringBuffer.
JDBC's Thin and OCI are the two sets of Java access to Oracle databases, which is provided by Oracle. Thin is purely using Java to complete access to the database. The advantage is that the client OCI is to use Java to call the machine's Oracle client and then access it. Database, the advantage is fast, but it is necessary to install and configure the database.