DoubleBuffer order() methods in Java with Examples
The order() method of java.nio.DoubleBuffer class is used to get the ByteOrder of this DoubleBuffer instance.
public abstract ByteOrder order()
Return Value: This method returns this buffer’s byte order.
Below are the examples to illustrate the order() method:
DoubleBuffer is : [10.5, 20.5, 30.5, 40.5] Order: LITTLE_ENDIAN
DoubleBuffer is : [0.0, 0.0, 0.0, 0.0] Order: LITTLE_ENDIAN
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.