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
What is basic syntax?
What is ide with example?
Can we call virtual funciton in a constructor ?
What is independent and dependent variables in research?
Is set ordered?
Which browsers work with java?
Why we use set in java?
Can an interface be defined inside a class?
Is list thread safe in java?
What is meant by class loader? How many types are there?
Give few difference between constructor and method?
What is Mutex (Mutual Exclusion Object) ?
What is the similarity between dynamic binding and linking?
What is the use of keywords in java?
What is the benefit of inner classes in java?