what is d difference between deep cloning and shallow
cloning in core java?

Answer Posted / nishant

Deep cloning - You clone the object and their constituent
parts.

Shallow cloning - You clone only the object, not their
parts. You add references to their parts

Is This Answer Correct ?    10 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the super void?

461


What is singleton class and how can we make a class singleton?

661


What is class and its types?

543


What is a type parameter in java?

532


What is meant by distributed application? Why are we using that in our application?

552






What is a priority queue java?

529


Does .length start 0 java?

569


What are the advantages of packages in java?

573


Which collection does not allow duplicates in java?

473


Why generics are used in java?

553


What is difference between jdk,jre and jvm?

571


State the merge-sort principle and its time complexity.

574


What is oop in java?

532


What is struts in java?

577


Why hashcode is used in java?

500