While attempting to copy a file’s contents to an array of
bytes in Java I noticed something interesting that is taken for granted: array indexes are integers. This implies that only ~2G entries are available. Even though Java may have large file support (>2GB) and extended memory access enabled one cannot perform certain functions.
Nothing earth shattering here but it was one of those Hmmmm moments.