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 primitive data type in java?
how does the run() method in runnable work? : Java thread
Is main an identifier?
What is native method in java?
How can you say java is object oriented?
Is string is a keyword in java?
System.out.println("somestring"); It will create any object or not
What is the purpose of premetive data types in java?
What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?
Why java is considered dynamic?
what is an object class?Explain its methods?
Explain exception chaining in java?