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 main function purpose?
What is the difference between synchronized and synchronized block?
What is an abstract method in java programming?
What is class and its types?
Write a program in java to find the maximum and minimum value node from a circular linked list.
Explain the difference between association, aggregation and inheritance relationships.
what is meant by HQL?
When super keyword is used?
What do you know about java?
What is method in research paper?
What are the loops in java?
What is a constructor, constructor overloading in java?
What is the use of object and class classes?
What is try-with-resources in java?
What is externalizable?