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

What language is pass by reference?

800


What is an class?

783


What is lexicographically smallest string?

841


Can we have more than one package statement in the source file?

883


Is empty string in java?

849


Explain thread life cycle in java?

803


What is difference between path and classpath?

801


What is a variable and constant?

788


What do you mean by append?

762


What is ctrl m character?

761


What is the use of put method?

753


What is final access modifier in java?

848


What is definition and declaration?

755


What is java virtual machine and how it is considered in context of java’s platform independent feature?

870


enlist some features of jdk.

761