how can u apply shallow cloning and deep cloning to create
object?
Answer / kiran sonaje
Hi,
Please refer below link for shallow cloning
http://www.java2s.com/Code/Java/Language-
Basics/ShallowCopyTest.htm
and for deep cloing
http://www.java2s.com/Code/Java/Language-
Basics/DeepCopyTest.htm
Please please observe clone method to get more
clarification between deep and shallow cloning
| Is This Answer Correct ? | 2 Yes | 3 No |
string is immutable? right every one knows that, my question is it advantage or disadvantage making string immutable?
What is boolean used for?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Which java.util classes and interfaces support event handling?
What are the fileinputstream and fileoutputstream?
Can you explain the private protected field modifier?
Write code of any action class?
Give example to differentiate between call by value and call by reference.
What are three types of loops in java?
Can we nested try statements in java?
How do u pass data from one jsp to another jsp?
What is the difference between menuitem and checkboxmenu item?