Skip to main content

Object

Information

Parent class of all Java objects. 

Parent

None (and itself at the same time, don't question it)

Variables and Functions

NameTypeInfo
toString()StringTag collection type.
equals(Object other)booleanChecks equality with another object.
hashCode()intHash code of this object. It is used to optimize maps and other things, should never be used for object equality.
classfinal ClassObject's type/class.