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...

how can u apply shallow cloning and deep cloning to create
object?

Answer Posted / kiran sonaje

Hi,

Please refer below link for shallow cloning

http://www.java2s.com/Code/Java/Language-
Basics/ShallowCopyTest.htm

and for deep cloing
http://www.java2s.com/Code/Java/Language-
Basics/DeepCopyTest.htm

Please please observe clone method to get more
clarification between deep and shallow cloning

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why destructor is not used in java?

976


What is meant by call by reference?

1008


What does file separator do in java?

1014


What do you mean by inner class in java? Explain

1068


Explain about member inner classes?

1100


What is the basic difference between string and stringbuffer object?

1083


Explain the private protected method modifier?

986


How java enabled high performance?

1051


What is stringwriter?

953


How do I get a substring?

977


How do you escape a string?

990


Is there a case when finally will not execute?

1007


What is the internal implementation of set in java?

925


What is the reason behind using constructors and destructors?

1061


What is a default constructor and also define copy contrucyor?

1105