Which class is extended by all other classes?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
what is jms? features of jms
What is the use of anonymous inner classes ?
what is the difference between yielding and sleeping? : Java thread
How many types of literals are there in JAVA?
String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?
6 Answers Flextronics, Keane India Ltd,
wat is class level lock and object level lock
What is the difference between choice and list?
What are the loops in java?
What is difference between public static and void?
Explain the difference between hashmap and hashtable in java?
Difference between concurrent hashmap and hashtable and collections
What do you understand by abstract classes?