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

how to write a program for chat function using core java

1 Answers   Satyam,


Explain about the main() method in java?

0 Answers  


What is string intern in java?

0 Answers  


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

0 Answers  


program to validate the IP address? Validity range should be 0 to 255

1 Answers   Huawei,


Sample code to retrieve objects from HashMap in sorted ascending order?

2 Answers  


What is meant by data hiding in java?

0 Answers   Aspire, Infogain,


How listener identify that the event came from a particular object?

0 Answers  


What are the steps in the jdbc connection?

0 Answers  


What do you understand by an io stream?

0 Answers  


Why do inner class cannot have static declaration except static nested class?

2 Answers   TCS, Wipro,


how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?

2 Answers  


Categories