Why is System.arraycopy native in Java?

In native code, it can be done with a single memcpy / memmove, as opposed to n distinct copy operations. The difference in performance is substantial.

Leave a Comment