Why Object is Super class in Java?

Questions by kool.bird9   answers by kool.bird9

Showing Answers 1 - 12 of 12 Answers

sridhar

  • Nov 15th, 2011
 

In java, all classes are comes under the Object class,so it is a Superclass

Code
  1. import java.lang.*;

shamsher

  • Nov 16th, 2011
 

java is object oriented language .oops is belong to real world so in a real world all thing is object. if we define all thing is come in object . object is a real world entity so similar here make a object to super class in java

  Was this answer useful?  Yes

prabhul

  • Nov 21st, 2011
 

Based on object oriented programming,the Object class, in the java.lang package, sits at the top of the class hierarchy tree. Every class is a descendant, direct or indirect, of the Object class. Every class you use or write inherits the instance methods of Object. You need not use all of the methods, but, if you choose to do so, you may need to override them with code that is specific to your class.

  Was this answer useful?  Yes

sampra

  • Mar 6th, 2012
 

Answer Question
Correct Answer
prabhul

Answered On : Nov 21st, 2011

Based on object oriented programming,the Object class, in the java.lang package, sits at the top of the class hierarchy tree. Every class is a descendant, direct or indirect, of the Object class. Every class you use or write inherits the instance methods of Object. You need not use all of the methods, but, if you choose to do so, you may need to override them with code that is specific to your class.
Answer Question
Correct Answer

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions