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

Answer Posted / guest

clone method is used to create copies of an object.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1127


What is java basic concept?

635


Can finally block be used without a catch?

627


How do you end a program?

655


What is a static class in java?

632






Explain the difference between throw and throws in java?

636


When is finally block not called?

688


Give me an example of array and linked list? Where they can be used?

647


What is a locale?

799


Which keyword specify that a variable is effectively final ?

666


Why is stringbuffer faster than string?

582


What is final, finally, finalize?

695


What is a function argument in java?

608


What are the different approaches to implement a function to generate a random number?

669


How do you empty a list in java?

653