What is the output of the following code?
LocalDate date = LocalDate.parse("2020-04-30", DateTimeFormatter.ISO_LOCAL_DATE); date.plusDays(2); date.plusHours(3); System.out.println(date.getYear() + " " + date.getMonth() + " "+ date.getDayOfMonth());
D.
A LocalDate does not have a time element.
Therefore, it has no method to add hours, and the code does not compile.