In this tutorial, we will check int buffer is direct or not.
The java.nio.IntBuffer class extends java.nio.Buffer class. It provides the following methods:
| Return type | Method | Description |
| abstract boolean | isDirect() | The isDirect() method tells whether this associated buffer is direct or not. |
| static IntBuffer | wrap(int[] array) | The wrap(...) method create a int buffer by wrapping the associated int array. |
import java.nio.*;
|
| C:\>java IntIsDirect int buffer is direct. int buffer is not direct. |