Java Object Class
Java.lang package provides an Object class which is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.
The declaration of java.lang.Number class is:
public class Object
|S.N||Constructors & Description|
The java.lang.Object class has a number of methods which are listed below:
|S.N||Methods & Description|
protected Object clone()|
Creates and returns a copy of this object.
boolean equals(Object obj)|
Indicates whether some other object is "equal to" this one.
protected void finalize()|
Deprecated. Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
Returns the runtime class of this Object.
Returns a hash code value for the object.
Returns a string representation of the object.