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 |
Why is it called a string?
Can we create our own wrapper class in java?
What is string args [] in java?
How do you reverse sort in java?
What is update method and when it is called?
How the elements are organized in GridBagLayout?
Name two subclasses of the TextComponent class?
What is the difference between math floor and math round?
what happens when a thread cannot acquire a lock on an object? : Java thread
Can you extend main method in java?
What is args length in java?
Explain the importance of throwable class and its methods?