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 data type is string java?
If try block is successfully executed, Then Is Finally block executed?
What is meant by main method?
java is pure object-oriented programming language?why it is platform independent.
Can a class be a super class and a sub-class at the same time? Give example.
We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.
difference between java ,c#&java,c++
What is the Difference between Final Class && Abstract Class?
What is bom encoding?
what are upcasting and downcasting?
What is type inference in java8?
Which is bigger float or double java?