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 the do while loop syntax?
Can you add null to a list java?
How can you say HashMap is syncronized?
how we can make a write-only class in java?
What is a Null object?
What is the need of transient variables in Java ?
What is static import in java?
Can we declare static variables in JSP page.
What is slash r?
Write a java program to check if a number is prime or not?
Write a program to create a binary Tree ?
Explain a few methods of overloading best practices in java?