How would you make a copy of an entire Java object with its state?

Q

How would you make a copy of an entire Java object with its state?

✍: Guest

A

Have this class implement Cloneable interface and call its method clone().

2013-04-16, 2032👍, 0💬