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
explain what is transient variable in java?
What are the parts of methodology?
If you do not want your class to be inherited by any other class. What would you do?
What is meant by nested loop?
How many bytes is double?
What is the purpose of encapsulation?
What is abstraction in java?
How java uses the string and stringbuffer classes?
How to sort list of list in java?
Write a java program to check if a number is prime or not?
Where is stringbuffer stored?
What are wrapper classes in java?
What is the difference between heap memory and stack memory?
What is the gregoriancalendar class in java programming?
What are mutable classes?