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 generic class?

642


What exactly is methodology?

476


What is constructor in java ?

631


What is jrmp?

544


Explain yield() method in thread class ?

614






how to create daemon thread in java?

600


Why are constructors used?

551


What happens when you add a double value to a string?

538


What is the byte range?

578


What is an empty class? What functionality does it offer in Java?

667


Difference between Linked list and Queue?

602


What are adapter classes?

597


How concurrent hashmap works?

605


What is the inheritance?

546


How finally used under exception handling?

506