Java Get Minimum Byte Value

Tags: byte

In this Java core tutorial we learn how to get the minimum byte value in Java programming language.

How to get minimum byte value in Java

In Java, to get the minimum byte value we can use the Byte.MIN_VALUE constant as the following example Java code.

GetMinByteExample.java

public class GetMinByteExample {
    public static void main(String... args) {
        // Get Minimum Byte Value
        byte minByte = Byte.MIN_VALUE;

        System.out.println("Minimum Byte Value: " + minByte);
    }
}
The output as below.
Minimum Byte Value: -128

Happy Coding 😊

Java Get Maximum Byte Value