Flashcards
Object class
Cards in this deck (2)
- 1What is the object classSuper class of all classes is made by compiler
- Object class is automatically inherited by all the classes and they can be overridden - 2Object class methodstoString() -> Gives the string representation of an object
getClass() -> Returns the class to which object belongs
hashCode() -> Represents an unique id for an object
equals() -> Compares two objects for equality
Information
- Description
- Flashcards on Object class, created by BLU BLU on 30/01/2025.
- Created by
- BLU BLU
- Views
- 0
- Rating