MemoryAccess on Java