Do you know some methods in object class?

int hashCode() – Used to get a hash code value for the object. void notify() – Used to wake up a single thread that is waiting on this object’s monitor. void notifyAll() – Used to wake up all threads that are waiting on this object’s monitor. String toString() – Used to get a string representation of the object.6 Şub 2018

Read more

Which are the methods of object class?

Methods of Object class MethodDescriptionpublic int hashCode()returns the hashcode number for this object.public boolean equals(Object obj)compares the given object to this object.protected Object clone() throws CloneNotSupportedExceptioncreates and returns the exact copy (clone) of this object.Java Object Class – Javatpoint www.javatpoint.com › object-class

Read more