What is difference between shallow copy and deep copy? Which is default?
Default version of clone method creates the shallow copy of an object. To create the deep copy of an object, you have to override clone method. Shallow copy is preferred if an object has only primitive fields. Deep copy is preferred if an object has references to other objects as fields.
| Is This Answer Correct ? | 0 Yes | 0 No |
Generally variables are stored in heap memory. When he variables are created in stack?
Explain the different access specifiers for the class member in c++.
What is a constant reference?
Do we have private destructors?
Is c++ harder than java?
what is the C++
Explain what you mean by a pointer.
What is function prototyping? What are its advantages?
Is ca high or low level language?
How delete [] is different from delete?
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What is the role of static keyword for a class member variable?