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
What is meant by inheritance and what are its advantages?
What is the difference between conversation & casting?
Can we synchronize static methods in java?
What do you mean by pointer value and address?
Is null in java?
Can a boolean be null java?
Explain different states of a thread in java?
How to obtain a performance profile of java program
What is the difference between jdk and jre?
What is a blocking method in Java?
What is the meaning of nullable?
Can you run java program without main method?
how does multithreading take place on a computer with a single cpu? : Java thread
Explain public static void main(string args[]) in java.
Can we sort arraylist in java?