what is the use of clone method? why user cant overwrite in
sub class without its proper defination.
Answer Posted / aravind
When we want to maintaion a local copy of the object we use
clone method. This is to ensure not to modify the callers
object.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How many arguments can be passed to main ()?
Can we have two methods in a class with the same name?
Why constructor has no return type?
What is passed by reference and pass by value ?
What is the different types of functions?
What is difference between jdk,jre and jvm?
Is object a data type in java?
What is the significance of listiterator?
What is polymorphism and what are the types of it?
Which class is the superclass for every class in java programming?
How many types of methods are there in java?
What is operator overloading. Is it is supported in java?
Can we sort list in java?
Explain purpose of sleep() method in java?
How to display all the prime numbers between 1 and 100