how many types of cloning?

Answer Posted / krishnachaitanya

Cloning is done in two types:
1.Shallow Cloning
2.Deep Cloning

depends on how you override clone()in you class

Is This Answer Correct ?    20 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

827


How can we make string upper case or lower case?

591


In java how do we copy objects?

543


Why collection is called framework in java?

530


What is the default value of byte datatype in java?

473






What is the difference between inheritance and encapsulation?

582


Explain when noclassdeffounderror will be raised ?

608


Explain about wait() method?

557


What are untrusted applets?

580


Why string is called as immutable?

516


How are multiple inheritances done in Java?

612


What is int argc char * argv?

559


How to set the permissions to a file in java?

529


Why is String immutable?

609


What is a null check?

531