Why Object class is super class of all classes in java??
Jvm loads the .class file using classloader and classloader loads them by creating class of Class to which .class members are loaded by creating Object of Object class....this means Object of Object class created 1st so we Object as root object
I think object class class load the beginning native libraries for other classes. That's y Object is parent class of oll class..
Inbuilt Java library provides the object class ...... All classes inherit from object class only ....so it is super class of all classes
Coz object class provides some global methods [equals() & hashcode() ,getclassname() etc] which can be used by all classes.This is the reason I think.
This is part of java, it it allows for people to do simple h
Thing like compare any class with other classes or have a to string method and comes in handy when inheriting classes and polymorphism gets into play