ContactUs :

Please send your Questions & Answers or Feedback to ""

What is an object in Java ?

Object is an instance of a class.It has state, behavior and identity.There are no types of objects.For the object to be created,the class of the object should be created with needed constructors and then creation of object is done by :


    Classname objectname = new classname()(depends on which constructor we use).

Object in context of a class is the root of the class hierarchy in Java in the java.lang package.

Every class has Object as a superclass whether it's explicit or not. All objects, including arrays, implement the methods of this class.


Related Posts Plugin for WordPress, Blogger...
Flag Counter