Top Categories
11.1 Object Cloning in Java Theory
- Category:
- Sub Category:
Concepts : Clone, Shallow Cloning, Deep cloning, Clone : clone() is a method in the Java used for object duplication. Shallow Cloning : Copy all the fields of a new instance of the same class to the new instance Deep Cloning : The independent of original instance and making changes in clone shoul
Concepts : Clone, Shallow Cloning, Deep cloning, Clone : clone() is a method in the Java used for object duplication. Shallow Cloning : Copy all the fields of a new instance of the same class to the new instance Deep Cloning : The independent of original instance and making changes in clone should not affect original instance.