LocalDate MAX example
Description
LocalDate MAX
defines the maximum supported LocalDate, '+999999999-12-31'.
Syntax
MAX
has the following syntax.
public static final LocalDate MAX
Example
The following example shows how to use MAX
.
import java.time.LocalDate;
//from www . j a va 2 s . co m
public class Main {
public static void main(String[] args) {
LocalDate a = LocalDate.MAX;
System.out.println(a);
}
}
The code above generates the following result.