• Dear Guest, Please do NOT forget to join our JAVA JOBS (ONLY) FACEBOOK GROUP to be aware of latest JAVA openings, and you may also post any JAVA related queries/jobs.

What are the types of Cloning ?

#1
There are two types of Clonings :

1. Shallow Cloning
2. Deep Cloning

Shallow Cloning : It means, if we change the content on the Cloned Object (i.e., copy of existing original Object) will effect on the Original Object also.

- It can done by using Object.clone() method.

Deep Cloning : It means, if we change the content on the Cloned Object (i.e., copy of existing original Object) will not show effect on the Original Object.

- It can done by using overriding the clone() method in our Class.
 
#2
There are three distinct sorts of counterfeit cloning: quality cloning, conceptive cloning and restorative cloning. Quality cloning produces duplicates of qualities or fragments of DNA. Regenerative cloning produces duplicates of entire creatures.
 
Top