Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many arguments can be passed to main ()?

947


Can we have two methods in a class with the same name?

997


Why constructor has no return type?

1054


What is passed by reference and pass by value ?

992


What is the different types of functions?

999


What is difference between jdk,jre and jvm?

1058


Is object a data type in java?

1065


What is the significance of listiterator?

1031


What is polymorphism and what are the types of it?

946


Which class is the superclass for every class in java programming?

952


How many types of methods are there in java?

961


What is operator overloading. Is it is supported in java?

968


Can we sort list in java?

944


Explain purpose of sleep() method in java?

1070


How to display all the prime numbers between 1 and 100

951