DirectIntBuffer.java

import java.nio.*;
class DirectIntBuffer {
  public static void main(String[] args) {
    ByteBuffer bb = ByteBuffer.allocateDirect(4*10);
    IntBuffer ib = bb.asIntBuffer();
    System.out.println(ib.isDirect()); // Affiche true
  }
}