The Object class is extended by all other classes.:the parent class or base class is extended by other classes.:A Singleton is a class which at any given time has only one:Object class:Object class is the class which is extended by all other class.it is under the Java.lang.There is no need to import it(Bydefaultit is imported).so it is not clear by observing a simple code whether object class is extended or not. :Object class is inherited by all the subclasses.it is the super class of every class we create.It is imported by default.:Object class is super class of all other classes in Java.
Category:Java Interview Questions
No comments:
Post a Comment