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 java project architecture?

1984


What are advantages and disadvantages of OOPs?

857


What is number data type?

766


What is the biggest integer?

799


What is the method in java?

834


What is outofmemoryerror in java?

756


Where are register variables stored?

797


Explain the concept of proper inheritance?

814


Why a dead thread occurs?

764


I want to store more than 10 objects in a remote server? Which methodology will follow?

2870


What is struts in java?

806


If you are given the name of the function at run time how will you invoke the function?

885


Explain the difference between the public, private, final, protected, and default modifiers?

780


How are java objects passed to a method and what are native methods?

813


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

760