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

Why is it called a string?

0 Answers  


Can we create our own wrapper class in java?

0 Answers  


What is string args [] in java?

0 Answers  


How do you reverse sort in java?

0 Answers  


What is update method and when it is called?

2 Answers   TCS,






How the elements are organized in GridBagLayout?

1 Answers  


Name two subclasses of the TextComponent class?

2 Answers  


What is the difference between math floor and math round?

0 Answers  


what happens when a thread cannot acquire a lock on an object? : Java thread

0 Answers  


Can you extend main method in java?

0 Answers  


What is args length in java?

0 Answers  


Explain the importance of throwable class and its methods?

0 Answers  


Categories