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 |
how to write a program for chat function using core java
Explain about the main() method in java?
What is string intern in java?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
program to validate the IP address? Validity range should be 0 to 255
Sample code to retrieve objects from HashMap in sorted ascending order?
What is meant by data hiding in java?
How listener identify that the event came from a particular object?
What are the steps in the jdbc connection?
What do you understand by an io stream?
Why do inner class cannot have static declaration except static nested class?
how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?