Byte.MIN_VALUE in Java

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

Syntax:

byte java.lang.Byte.MIN_VALUE.

A constant holding the minimum value a byte can have, -2^7 or (-128).

Approach

Java

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

        System.out.println(Byte.MIN_VALUE);

    }
}

Output:

-128

No comments:

Post a Comment