What comes to mind when someone mentions a shallow copy in java?
Answer / Narayan Lal
A shallow copy in Java refers to the process of creating a new object and initializing its fields with the reference values (i.e., pointers) of the existing object's fields, instead of creating a deep copy of the object's internal data structure. Shallow copies are often performed using the Object.clone() method or assignment operator (=).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is Remote Interface ?
What is an array and a vector? How they different from each other?
There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?
what do you mean by classloader?
Why there are some null interface in java? What does it mean?
What are the drawbacks of reflection?
Difference between linkedlist and arraylist.
What is difference between module and function?
What is the purpose of assert keyword used in jdk1.4.x?
How can an exception be thrown manually by a programmer?
Which are the two subclasses under exception class?
What method is used to compare two strings ?