Question #645

How can I create an exact copy of the object, not just link to it in Java?

Expert's answer

You have to use the method «clone» for the object instance. But not all classes support cloning, as for the support of this operation the class should realize the interface «Clonnable».

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS