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() in real time scenario?

Answer Posted / aravindareddy

Clone() method is used to create and return copy of the
object,The Cloneable interface defines a method called Clone
(), which can be used to clone an object in your java
program.The reason for making a copy of an object is if
you’re going to modify that object and you don’t want to
modify the caller’s object. If you decide that you want to
make a local copy, you simply use the clone() method to
perform the operation.

Is This Answer Correct ?    28 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are arrays classes in java?

966


Why there are some null interface in java? What does it mean?

1052


Why is java so important?

1064


What is the purpose of an interface?

982


When is update method called?

1090


What is a class in java?

960


What is return keyword in java?

1008


What is the primitive type byte?

940


Does isempty check for null?

953


What do you mean by inner class in java?

1010


Is math an abstract class in java?

948


What is instance synchronization?

998


What are variable arguments or varargs?

958


Can I import same package/class twice?

893


Differentiate between postfix and prefix operators in java.

1078