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 to find the index of the largest number in an arraylist java?

1023


What is Java Shutdown Hook?

1185


How to create a thread in java?

1130


What happens if an exception is throws from an object's constructor?

1120


How many types of threads are there in java?

1051


Explain what is encapsulation?

1078


What is string subsequence method?

1114


What is charat java?

953


What is final int?

1015


Is java a digit method?

991


What are different types of states exist for a thread?

1008


What is the parse method in java?

1114


What is the purpose class.forname method?

956


Is null an object in java?

1027


What is a Transient Object?

1078