import java.nio.*; import java.nio.IntBuffer; public class AllocateIntBuffer { public static void main(String[] args) throws Exception { IntBuffer IntBuf = IntBuffer.allocate(1024); System.out.println("Position of IntBuffer :" + IntBuf.position()); System.out.println("Limit of IntBuffer :" + IntBuf.limit()); System.out.println("Capacity of IntBuffer :" + IntBuf.capacity()); } }