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

How many decimal digits is 64 bit?

536


What is ellipsis in java?

583


What is identifier with example?

579


Can interface be private in java?

547


What is role of void keyword in declaring functions?

580






What are the differences between heap and stack memory?

554


List implementations of list interface?

567


Explain when noclassdeffounderror will be raised ?

622


How is string immutable in java?

545


What is java basic concept?

527


How do you compare two strings lexicographically?

544


What is static method with example?

623


What is the program development process?

567


What about features of local inner class?

621


What is method overriding in java ?

666