Byte.SIZE in Java

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

Syntax:

int java.lang.Byte.SIZE.

The number of bits used to represent a byte value in twos-complement binary form.

Approach

Java

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

        System.out.println(Byte.SIZE);

    }
}

Output:

8

No comments:

Post a Comment