Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

explain what is transient variable in java?

1191


What are the parts of methodology?

1036


If you do not want your class to be inherited by any other class. What would you do?

1071


What is meant by nested loop?

1093


How many bytes is double?

1047


What is the purpose of encapsulation?

1056


What is abstraction in java?

1143


How java uses the string and stringbuffer classes?

1131


How to sort list of list in java?

1133


Write a java program to check if a number is prime or not?

1082


Where is stringbuffer stored?

1046


What are wrapper classes in java?

1130


What is the difference between heap memory and stack memory?

1120


What is the gregoriancalendar class in java programming?

1090


What are mutable classes?

1129