Java Data Type Tutorial - Byte MIN_VALUE example








Byte MIN_VALUE stores the minimum value a byte can have, -27.

Syntax

MIN_VALUE has the following syntax.

public static final byte MIN_VALUE

Example

In the following code shows how to use Byte.MIN_VALUE field.

public class Main {

  public static void main(String args[]) {
    System.out.println("Min value from Byte class:"+Byte.MIN_VALUE);
  }
}

The code above outputs: