Learn Java practically
and Get Certified.
Popular Tutorials
Start Learning JavaCreated with over a decade of experience.
Certification Courses
Created with over a decade of experience and thousands of feedback.
Learn Java practically
and Get Certified.
Try Programiz PRO!
Learn Java practically
and Get Certified.
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.
Java Object getClass()
returns the class name of the object
Java Object hashCode()
returns the hashcode value of the object
Java Object toString()
converts an object into the string
Java Object equals()
checks if two objects are equal
Java Object clone()
creates a copy of the object