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
2010-03-16 11:25:00
definition please =)
anonymous
2010-03-16 11:49:28
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
2010-03-16 13:57:13