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 |
Can there be an abstract method without an abstract class?
What is the size of a string in java?
Which is faster set or list in java?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
what is the use/perpose of having a method antive?
Explain about core java?
What do you mean by singleton class in java?
What is size_t?
Explain cookies?
write a code, we have two thread, one is printing even no and other print the odd no.
What is a substring of a string?
What are listeners in java and explain ?