Year MIN_VALUE example
Description
Year MIN_VALUE
defines the minimum supported year, '-999,999,999'.
Syntax
MIN_VALUE
has the following syntax.
public static final int MIN_VALUE
Example
The following example shows how to use MIN_VALUE
.
import java.time.Year;
/* w w w .j a v a2 s.c o m*/
public class Main {
public static void main(String[] args) {
int i = Year.MIN_VALUE;
System.out.println(i);
}
}
The code above generates the following result.