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 is variable and constant explain with example?
Write a java program to print fibonacci series?
What is the main difference between java platform and other platforms?
Hi friends, i am new to java. can you explain how java is secured.
Does string is thread-safe in java?
What is object class in java?
what is the purpose of method overriding in java where v r completely re-defining a inherited method instead y can't v create a new method and define.If the question is very silly plz excuse me and do reply.Thank U!
7 Answers emc2, Kumaran Systems,
What is super constructor?
How do constructors use this() and super()?
What is difference between “==” and equals()?
What do you mean by flow of struts?
What is a newline character in java?