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

What are the differences between Java 1.0 and Java 2.0?

2204


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

1071


What is hashmap in java?

1022


Can we use return in constructor?

886


How to perform selection sort in java?

958


Can we define a package statement after the import statement in java?

1020


How can a gui component handle its own events in java programming?

973


How do we access static members in java?

1060


What is parsing in java?

904


Can you give names of Container classes?

2261


What are disadvantages of java?

960


What is backdrop?

1015


What are the Main functions of Java?

1053


What are the drawbacks for singleton class?

945


Can we clone singleton class in java?

910