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 are the differences between wait() and sleep()?

0 Answers  


class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes....

4 Answers   Quinnox,


What is main difference between variable and constant?

0 Answers  


What is Java Reflection API? Why it’s so important to have?

0 Answers  


What are concepts of OOPS and how are they implemented in Java?

2 Answers   KPIT,


What are the kinds of polymorphism?

0 Answers  


What are the features in java?

0 Answers  


Differentiate between stringbuffer and string?

0 Answers  


How to make class immutable

6 Answers  


What are the two environment variables that must be set in order to run any java programs?

0 Answers  


What is methodological theory?

0 Answers  


What is entry in java?

0 Answers  


Categories