what is the purpose of class "Object" which is base class
for all classes?
Answer Posted / piryabrata patro
listen first , when you create object of one class which is not extending any class than , instead of one object , two object will be created and that is nothing but object of Object class and one more thing is no object is created with out it's superclass. So, object of subclass can not be created without it's superclass where Object class comes into picture because by default compiler gives Object class as superclass to all class which is not extending any class at compilation time itself.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Outline the major features of java.
What is the default value of byte datatype in java?
What are variable arguments or varargs?
What is the purpose of encapsulation?
What is meant by main method?
What is the difference between the boolean & operator and the && operator in java programming?
What are "class access modifiers" in Java?
What is treemap in java?
how to create constants in java?
What is better- service oriented or batch oriented solutions?
What is method overloading in java ?
Realized?
What is a pattern what is an anti pattern?
Is break statement can be used as labels in java?
What is nextint java?