isDirect(): This method is available in java.nio.IntBuffer class of Java.
Syntax:
boolean java.nio.IntBuffer.isDirect()
This method tells whether or not this int buffer is direct.
Parameters: NA
Returns: true if, and only if, this buffer is direct.
Exceptions: NA
Approach
Java
import java.nio.IntBuffer;public class IntBufferisDirect {public static void main(String[] args) {int array[] = { 1, 2, 3, 4 };IntBuffer lb = IntBuffer.wrap(array);System.out.println(lb.isDirect());}}
Output:
false
No comments:
Post a Comment