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 |
Are there any tools available in java to create reports?
Can you call one constructor from another if a class has multiple constructors?
Explain super keyword in java.
Can we declare an anonymous class as both extending a class and implementing an interface?
8 Answers College School Exams Tests, JVA, TCS, Wipro,
What is array size in java?
________ exception must be either caught or specified in throws class of the method.
What are hot spots in Java programming?
Will set allow duplicates in java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
How do you find the absolute value?
How will you override default serialization mechanism in java
How do you test a method for an exception using junit?