Class Overview
The root class of the Java class hierarchy. All non-primitive types (including arrays) inherit either directly or indirectly from this class.
Public Constructors
Object()
Constructs a new instance of Object.
能改寫的Public Methods 有equals(Object o),hashCode(),toString()。其中equals和hashCode要同時改寫。
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares this instance with the specified object and indicates if they are equal.
| |||||||||||
Returns the unique instance of
Class that represents this object's class. | |||||||||||
Returns an integer hash code for this object.
| |||||||||||
Causes a thread which is waiting on this object's monitor (by means of calling one of the
wait() methods) to be woken up. | |||||||||||
Causes all threads which are waiting on this object's monitor (by means of calling one of the
wait() methods) to be woken up. | |||||||||||
Returns a string containing a concise, human-readable description of this object.
| |||||||||||
Causes the calling thread to wait until another thread calls the
notify() or notifyAll() method of this object. | |||||||||||
Causes the calling thread to wait until another thread calls the
notify() or notifyAll() method of this object or until the specified timeout expires. | |||||||||||
Causes the calling thread to wait until another thread calls the
notify() or notifyAll() method of this object or until the specified timeout expires. |
Protected Methods
沒有留言:
張貼留言