Should beYou should change the second line to ld = ld.plusMonths(2).plusDays(10); if you want to see 2018-02-10 in the output.
2018-03-11.
Also,
The above example of what doesn't work, has two tricks in it. One, atTime() returns LocalDateTime and two, LocalDateTime does not have atTime() method.LocalDate ld = LocalDate.of(2018, 1, 1);
ld = ld.withYear(2010).plusDays(10).atTime(10, 20).plusMonths(2);
Do the date and time questions on the exam get this tricky? Thanks