what is the use of clone method? why user cant overwrite in
sub class without its proper defination.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
clone method is used to create copies of an object.
| Is This Answer Correct ? | 1 Yes | 0 No |
What are 4 pillers of object orinted programming?
What is the inheritance?
How many types of classes are there in java?
what is a thread?
What is the function of java?
what is Abstract DataType?
Can a static class have a constructor?
In which language java is written?
What is a qualifier in a sentence?
What are the ways to instantiate the class class?
why would you use a synchronized block vs. Synchronized method? : Java thread
What is the difference between interpreter and compiling ?