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



what is the use of clone method? why user cant overwrite in sub class without its proper definatio..

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

what is the use of clone method? why user cant overwrite in sub class without its proper definatio..

Answer / guest

clone method is used to create copies of an object.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a newline character in java?

0 Answers  


Can we write method inside a method in java?

0 Answers  


What is a top level class in java?

0 Answers  


why HashTable not allow null key and value

2 Answers   Crimson Logic,


Explain throw keyword in java?

0 Answers  






Is it possible to write a regular expression to check if string is a number?

0 Answers  


what is the use of servlet engine?

2 Answers   Photon,


How do I stop concurrentmodificationexception?

0 Answers  


What is an image buffer?

0 Answers  


What is foreach loop in java?

0 Answers  


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

0 Answers  


To the class members how can we provide security?

1 Answers   Aspire,


Categories