What are the public methods of Object?
clone() Create Bin Return a copy of this object
equals() Determine
-
getclass() returns the running class of object
hashcode() returns the hash code value of the object
- ##notify() wakes up A single process waiting for an object listener
- notifyAll() wakes up all processes that are waiting for an object listener
- wait() causes the current thread to wait , until another thread calls the object's notify() method or notifyAll() method
##toString() returns the string representation of this object-
finalize() The garbage collector calls this method when the garbage collection determines that the object is not needed
The above is the detailed content of What are the common methods of Object class in Java?. For more information, please follow other related articles on the PHP Chinese website!