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


Please Help Members By Posting Answers For Below Questions

Which is the class in java?

738


Is there is any difference between a scrollbar and a scrollpane?

767


What is the difference between keyword and identifier?

789


How do you decide when to use arraylist and linkedlist?

747


What is the difference between and ?

696


How to create a fecelet view?

774


What does replaceall do in java?

693


Explain Basics of OOP Language in java

794


Can list be final in java?

694


What are the drawbacks of reflection?

767


What are the types of relation?

800


Give the hierarchy of inputstream and outputstream classes.

822


what is the difference between future and callable interface in java?

877


What is the function of static in java?

772


What are scriptlets?

835