DEVFYI - Developer Resource - FYI

Can we use System.arraycopy() method to copy the same array?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

153. Can we use System.arraycopy() method to copy the same array?

Yes, you can. The source and destination arrays can be the same if you want to copy a subset of the array to another area within that array.

(Continued on next question...)

Other Interview Questions