What is the result of the following?
LocalDate xmas = LocalDate.of(2016, 12, 25); xmas.setYear(2020); System.out.println(xmas.getYear());
C.
The Java 8 date and time classes are immutable.
This means they do not contain setter methods and the code does not compile.