Answer to Question #645 in Java | JSP | JSF for Fahad

Question #645
How can I create an exact copy of the object, not just link to it in Java?
1
Expert's answer
2010-09-15T12:19:03-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS