How can relate "block of memory" to "objects" in Java?
How can I define an object in Java in a way that would mean '开发者_运维知识库block of memory'?
Here are couple of examples:
final byte[] blockOfMemory = new byte[ 1024 ];
final java.nio.ByteBuffer blockOfMemory2 =
java.nio.ByteBuffer.allocateDirect( 1024 );
精彩评论