I was surprised to see in the Java source that System.arraycopy is a native method.
Of course the reason is because it\'s faster. But what native tricks is the code
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.
memcpy