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 data type is string java?

0 Answers  


If try block is successfully executed, Then Is Finally block executed?

0 Answers   PUCIT,


What is meant by main method?

0 Answers  


java is pure object-oriented programming language?why it is platform independent.

1 Answers  


Can a class be a super class and a sub-class at the same time? Give example.

1 Answers  






We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.

2 Answers  


difference between java ,c#&java,c++

3 Answers  


What is the Difference between Final Class && Abstract Class?

0 Answers   HCL,


What is bom encoding?

0 Answers  


what are upcasting and downcasting?

5 Answers  


What is type inference in java8?

0 Answers  


Which is bigger float or double java?

0 Answers  


Categories