DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

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

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

(Continued on next question...)

Other Interview Questions