Byte.BYTES in Java

Byte.BYTES: This method is available in the java.lang.Byte class of Java.

Syntax:

int java.lang.Byte.BYTES

The number of bytes used to represent a byte value in two'scomplement binary form.

Approach

Java

public class ByteBytes {
    public static void main(String[] args) {

        System.out.println(Byte.BYTES);

    }
}

Output:

1

No comments:

Post a Comment