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?



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

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

More Core Java Interview Questions

how jvm allocates memory for stack?

1 Answers   HP, Ramco,


can we have function for truncating the sign as like abs in oracle.

1 Answers  


how to create an applet

2 Answers  


What is early binding and late binding in java?

0 Answers  


What are Transient and Volatile Modifiers?

3 Answers   SAP Labs, TUP Manila,


what is the Diff. between Access Specifiers and Access Modifiers?

39 Answers   BMC, Cyber Shot, Infosys, VTS, Wipro,


Explain about exception propagation?

0 Answers  


Can an unreferenced object be referenced again?

0 Answers  


Program to find greatest prime number in n numbers?

3 Answers   Huawei,


Does sprintf add a null terminator?

0 Answers  


What do you understand by the bean persistent property?

0 Answers  


How will you invoke any external process in java?

0 Answers  


Categories