Example 1
Read moreWhat is the use of get class?
getClass() method returns the runtime class of an object . That Class object is the object that is locked by static synchronized methods of the represented class.
Read moreWhat is the use of get class?
getClass() method returns the runtime class of an object . That Class object is the object that is locked by static synchronized methods of the represented class.
Read moreWhich class has Equals method?
The java equals() is a method of lang. Object class, and it is used to compare two objects.
Read moreWhat are the methods in 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 moreWhat are the methods in 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