1.wait and Notify ()/notifyall ()
Object locks must be obtained before calling Wait () and notify (), typically used in synchronized. After the wait () method is called, the thread releases the lock on the object and must regain the object lock
2.clone (), "Shadow copy" and "Deep copy"
Shallow copy and deep copy concepts:
Shallow copy: all member properties of the copied object have the same value as the original object, and all references to other objects still point to the original object. In other words, shallow copy replicates only the object being considered, not the object it refers to. (The concept is not good to understand, please follow the example below to understand)
deep Copy: all the variables of the copied object contain the same values as the original object, removing the variables that refer to other objects. Variables that refer to other objects will point to new objects that have been copied, rather than to the original referenced objects. In other words, deep copy objects referenced by the object to be copied are copied over
3.registerNatives () Function: The method of mapping the methods in C/C + + to the native method in Java to realize the decoupling of the method name
Java--java.lang.object