What methods are available in the object class?

Methods of Object class MethodDescriptionprotected Object clone() throws CloneNotSupportedExceptioncreates and returns the exact copy (clone) of this object.public String toString()returns the string representation of this object.public final void notify()wakes up single thread, waiting on this object’s monitor.Java Object Class – Javatpoint www.javatpoint.com › object-class

Sizin İçin Seçtik  What is a class object?

Leave a Reply

Your email address will not be published. Required fields are marked *