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

What is an infinite loop in java? Explain with an example.

1013


What is a parameter in java?

973


What is an object in java and how is it created?

1037


Why is string buffer better than string ?

1095


Java Compiler is stored in JDK, JRE or JVM?

1509


Explain the overview of UDP messaging.

1113


What is the difference between comparison done by equals method and == operator?

1007


What is the use of :: in java?

998


What is the primitive type short?

1006


What is the SimpleTimeZone class?

2250


What is volatile keyword in java

1103


What is the exception hierarchy in java?

938


What is a ternary operator in java?

966


What do you understand by private, protected and public?

1026


How many bytes is a string in java?

972