Java-array-in-memory