Object Class
Method | Description |
---|---|
public final Class getClass() |
Returns the Class class object of this object. The Class class can further be used to get the metadata of this class. |
public int hashCode() | The Method returns the hashcode number for this object. |
public boolean equals(Object obj) | The Method compares the given object to this object. | protected Object clone() throws CloneNotSupportedException | The Method creates and returns the exact copy (clone) of this object. | public String toString() | The Method returns the string representation of this object. | public final void notify() | The Method wakes up single thread, waiting on this object's monitor. | public final void notifyAll() | The Method wakes up all the threads, waiting on this object's monitor. | public final void wait(long timeout)throws InterruptedException | The Method causes the current thread to wait for the specified milliseconds, until another thread notifies (invokes notify() or notifyAll() method). | public final void wait(long timeout,int nanos)throws InterruptedException | The Method causes the current thread to wait for the specified miliseconds and nanoseconds, until another thread notifies (invokes notify() or notifyAll() method). | public final void wait()throws InterruptedException | The Method causes the current thread to wait, until another thread notifies (invokes notify() or notifyAll() method). | protected void finalize()throws Throwable | The Method is invoked by the garbage collector before object is being garbage collected. |
Any Question ?