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 |
How do you define a method?
What is the purpose of return statement?
Can a constructor be protected?
When is the garbage collection used in Java?
String is mutable or immutable?
What are the common problems you have faced while implementing Java?
Can we have return statement in finally clause? What will happen?
Is string a datatype?
How to implement an arraylist in java?
What is mean by collections in java?
how to run ecllipse with jettyserver for windows environment using batch file
What is string manipulation?