class contains a template for creating objects, including properties and behavior;
Instantiation is the process of creating objects based on the definition of class; The object is the property of the Fill class, and the generated instance;
Encapsulation: Binding the state and behavior of an object to a logical unit;
In Java, a declaration is the creation of a reference to an object, the entity that creates the object, and the keyword "new" is used;
Java references, unlike the c\c++ pointers, are representations of reference objects, but cannot perform arithmetic operations;
The assignment operation of an object reference in Java is a passed handle (handle), not a copy, but a point to the same object;
Releases the handle using the keyword "null";
Garbage collection, the JVM (Java Virtual machine) will automatically recycle the objects released;
You can request garbage collection by using the statement: Runtime.getruntime (). GC ().
An object can also be an object's property, in which it simply stores the object's handle and does not retain the entire copy, avoiding data redundancy.
Author: csdn Blog spike_king
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/Java/