VOOZH about

URL: https://www.geeksforgeeks.org/java/bytebuffer-isdirect-methods-in-java-with-examples/

⇱ ByteBuffer isDirect() methods in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ByteBuffer isDirect() methods in Java with Examples

Last Updated : 27 Jun, 2019
The isDirect() method of java.nio.ByteBuffer Class is used to tell whether or not this byte buffer is direct. Syntax:
public abstract boolean isDirect()
Return Value: This method returns true if, and only if, this buffer is direct. Below are the examples to illustrate the isDirect() method: Examples 1:
Output:
buffer is direct
Examples 2:
Comment