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 to find the index of the largest number in an arraylist java?
What is Java Shutdown Hook?
How to create a thread in java?
What happens if an exception is throws from an object's constructor?
How many types of threads are there in java?
Explain what is encapsulation?
What is string subsequence method?
What is charat java?
What is final int?
Is java a digit method?
What are different types of states exist for a thread?
What is the parse method in java?
What is the purpose class.forname method?
Is null an object in java?
What is a Transient Object?