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

What is adapter in java?

0 Answers  


What is the purpose of methodology?

0 Answers  


What is arrays aslist in java?

0 Answers  


What is the dot operator?

0 Answers  


In which language java is written?

0 Answers  


What is a protected method?

0 Answers  


Can we extend singleton class?

0 Answers  


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

1 Answers   Rolta, TCS,


Explain the difference between jvm and jre?

0 Answers  


what is the difference between a threads start() and run() methods? : Java thread

0 Answers  


Give an example of use of pointers in java class.

0 Answers  


How do you make a thread in java?

0 Answers  


Categories