Which class is extended by all other classes?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by inheritance and what are its advantages?

686


What is the difference between conversation & casting?

667


Can we synchronize static methods in java?

688


What do you mean by pointer value and address?

661


Is null in java?

644






Can a boolean be null java?

625


Explain different states of a thread in java?

689


How to obtain a performance profile of java program

631


What is the difference between jdk and jre?

707


What is a blocking method in Java?

706


What is the meaning of nullable?

661


Can you run java program without main method?

647


how does multithreading take place on a computer with a single cpu? : Java thread

782


Explain public static void main(string args[]) in java.

614


Can we sort arraylist in java?

674