What is the output of the following code?
LocalDate date = LocalDate.of(2020, Month.APRIL, 40); System.out.println(date.getYear() + " " + date.getMonth() + " "+ date.getDayOfMonth());
F.
Java throws an exception if invalid date values are passed.
There is no 40th day in April-or any other month for that matter.