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


Please Help Members By Posting Answers For Below Questions

What is pangram in java?

784


What is the epoch date?

754


Difference between linkedlist and arraylist.

832


What is a variable analysis?

863


How do you create a first line indent?

751


What is unicode datatype?

739


What is return data type?

798


What are the steps that are followed when two computers connect through tcp?

779


What is the integer of 16?

780


What is finalize()?

896


What are the advantages of arraylist over arrays?

829


What is regex used for?

778


What are dot operator queries?

884


What is the size of an array?

789


Can we override private method in java?

858