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

Can there be an abstract method without an abstract class?

0 Answers  


What is the size of a string in java?

0 Answers  


Which is faster set or list in java?

0 Answers  


If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

0 Answers   CDAC,


what is the use/perpose of having a method antive?

2 Answers  






Explain about core java?

0 Answers  


What do you mean by singleton class in java?

0 Answers  


What is size_t?

0 Answers  


Explain cookies?

2 Answers   Canon,


write a code, we have two thread, one is printing even no and other print the odd no.

1 Answers   Global Logic,


What is a substring of a string?

0 Answers  


What are listeners in java and explain ?

2 Answers   TCS,


Categories