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
Write a function to find out longest palindrome in a given string?
What is the purpose of the strictfp keyword?
How many bytes is double?
What does this mean java?
Why you should not use singleton?
What is an exception in java?
What does the “static” keyword mean?
What must a class do to implement an interface in java programming?
What is Gang of four design patterns
Can final class have constructor?
How do singleton patterns work?
What do you mean by local variable and instance variable?
What is parameter example?
What about interthread communication and how it takes place in java?
Is 0 a prime number?