Take the 2-minute tour ×

How can I define an object in Java in a way that would mean 'block of memory'?

share|improve this question
add comment

1 Answer

Here are couple of examples:

final byte[] blockOfMemory = new byte[ 1024 ];

final java.nio.ByteBuffer blockOfMemory2 =
    java.nio.ByteBuffer.allocateDirect( 1024 );
share|improve this answer
definition please =) –  anonymous Mar 16 '10 at 11:49
add comment

Your Answer


