Java Object Methods | Programiz D11 Phase 2 Skip to main content

Java Object Methods

Java Object is the superclass for all the classes in Java. All the methods of Object class can be used by all the subclasses and arrays. The Object class provides different methods to perform different operations on objects. In this reference page, you will find all the Object methods available in Java. For example, if you need to get the class name of an object, use the getClasss() method.

returns the class name of the object

returns the hashcode value of the object

converts an object into the string

checks if two objects are equal

creates a copy of the object