Just curious:
Someone knows why the method System.arraycopy uses Object as type for src and dest? Would be perfectly possible to use Object[] instead?
Why define:
arraycopy(Object src, int srcPos, Object dest, int destPos, int length)
instead of
arraycopy(Object[] src, int srcPos, Object[] dest, int destPos, int length)
?
Primitive array types like
boolean[]anddouble[]do not extendObject[]but they do extendObjectThis method allows you to copy any type of array, so the type is Object.