views:

55

answers:

1

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

+4  A: 

Here are couple of examples:

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

final java.nio.ByteBuffer blockOfMemory2 =
    java.nio.ByteBuffer.allocateDirect( 1024 );
Alexander Pogrebnyak
definition please =)
anonymous
a) The JVM Specification http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.htmlb) The API-doc http://java.sun.com/javase/6/docs/api/java/nio/ByteBuffer.html
KarlP