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 a newline character in java?
Can we write method inside a method in java?
What is a top level class in java?
why HashTable not allow null key and value
Explain throw keyword in java?
Is it possible to write a regular expression to check if string is a number?
what is the use of servlet engine?
How do I stop concurrentmodificationexception?
What is an image buffer?
What is foreach loop in java?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
To the class members how can we provide security?