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 are the four pillars of java?
What is replaceall in java?
How the elements are organized in CardLayout?
What is unicode datatype?
Is string is a data type?
Explain creating threads by extending thread class ?
Describe what happens when an object is created in java ?
How could Java classes direct program messages to the system console, but error messages, say to a file?
Explain about member inner classes?
What is a marker interface?
Can array grow dynamically in java?
What does %d do in java?