What are methods of object class in Java?

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

Sizin İçin Seçtik  How can we convert one class object to another class in Java?

Leave a Reply

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

What are methods of object class in Java?

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

Sizin İçin Seçtik  Türkiye 5G ihalesi ne zaman?

Leave a Reply

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