Monday, July 29, 2019

What is Object Class in Java | Short Notes on Class in Java | What is Class in Java Programming Language

What is Object Class in Java | Short Notes on Class in Java | What is Class in Java Programming Language


Object Class is a special class in Java. All the Classes are Sub-Classes of an Object Class that means an Object Class is a SuperClass for all the other Classes.

Object Class defines the following:

object clone ()
Creates an object that is same as the object being cloned
void finalize
Called before an unused object is recycled
class<?>get class
Obtain the class of an object at run time
Int has code()
Return hash code associated with an invoking method
String to string ()
Return a string that describes an object
Void wait () void wait (long milli seconds)
Void wait (long milliseconds int nanoseconds)
Waits for another thread of execution
void notify()
Resumes execution of thread waiting on the invoking object
Void all notify()
Resumes execution of all thread waiting on the invoking object
boolean equals (Object Obj)
Determines whether one object is equal to another one

What is Object Class in Java | Short Notes on Class in Java | What is Class in Java Programming Language

No comments:

Post a Comment