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
Can I declare class as static or private?
Can we use string in switch case in java?
Can we force garbage collector to run ?
What is purpose of find feature?
What is boolean used for?
What does function identity () do?
Explain polymorphism citing an example.
what is static import in java? Explain
When is the finalize() called? What is the purpose of finalization?
How do you write methodology?
What are the parts of a method?
Write a program to print fibonacci series up to count 10.
Can we overload run() method in java?
What is binary tree in java?
What is a top level class in java?