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
What is serialversionuid?
Can a private method of a superclass be declared within a subclass?
What is difference between add() and addelement() in vector?
What is the difference between overriding & overloading?
What is static import in java?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
Why java is secure? Explain.
What is the difference between a window and a frame in java programming?
What is exception propagation?
Name few java 8 annotations ?
How can you read content from file in java?
What is a class reference?
What is void in java?
What is protected in java?
What is an error in java?