what is the use of clone method? why user cant overwrite in
sub class without its proper defination.
Answer Posted / 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 |
Post New Answer View All Answers
Give us the name of the list layoutmanagers in java?
What do you understand by looping in java? Explain the different types of loops.
Is singleton set an interval?
What is a percentage sign called?
What are use cases?
How can a gui component handle its own events in java programming?
What is the static method?
Difference between overriding and overloading in java?
Can we create our own daemon thread?
Differentiate between a constructor and a method? Can we mark constructors final?
Can we sort array in java?
What are the two main uses of volatile in Java?
What happens to a static var that is defined within a method of a class?
Which class is the superclass for every class in java programming?
Compare java and python.