Which class is extended by all other classes?

Answers were Sorted based on User's Feedback



Which class is extended by all other classes?..

Answer / debapriya patra

Everybody Knows abt the answer.Bcz its a very easy
question."Object" class is the super class of each and every
class.Sp by default every class extends the "Object" class

Is This Answer Correct ?    17 Yes 1 No

Which class is extended by all other classes?..

Answer / ravikiran

Object

Is This Answer Correct ?    9 Yes 1 No

Which class is extended by all other classes?..

Answer / kishor kommula

Every class by default extends Object.

Object class consist of various methods such as
clone,toString,getClass,finalize,notify,wait etc..

If you want to print your own object to the console you
must override the toString method...

Is This Answer Correct ?    4 Yes 0 No

Which class is extended by all other classes?..

Answer / anjan singh

the answer is already given above. let me ask u another
question related to this one

If every class already extends Object class , how can we
still extend another class??
eg.:

class B extends A{}

if class B already extends Object class , how can it extend
class A?

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can you override static methods?

0 Answers  


Why we use set in java?

0 Answers  


When finally clause is executed?

3 Answers  


What are the access modifiers in java?

0 Answers  


What do you understand by the term singleton?

0 Answers  






Can we inherit a class with private constructor?

0 Answers  


What are scalar data types?

0 Answers  


Is java pass by value or pass by reference?

0 Answers  


Explain the difference between abstract classes and interfaces in java?

0 Answers  


What is thread?

7 Answers   BMC, Virtusa,


Should database connections be singleton?

0 Answers  


I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?

4 Answers  


Categories