0 votes
in JAVA by
LocalDate date1 = LocalDate.now();

LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);

Period period = Period.between(date2, date1);

System.out.println(“Period: ” + period);

Choose the correct output.

a) Compilation error

b) Period: P-1M

c) Period: 1

d) Runtime error

1 Answer

0 votes
by
b) Period: P-1M
...