order(): This method is available in java.nio.LongBuffer class of Java.
Syntax:
ByteOrder java.nio.LongBuffer.order()
This method retrieves this buffer's byte order.
Parameters: NA
Returns: This buffer's byte order.
Exceptions: NA
Approach
Java
import java.nio.LongBuffer;public class LongBufferorder {public static void main(String[] args) {long array[] = { 1, 2, 3, 4 };LongBuffer lb = LongBuffer.wrap(array);System.out.println(lb.order());}}
Output:
LITTLE_ENDIAN
No comments:
Post a Comment