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

Related questions

0 votes
0 votes
asked Mar 1, 2023 in JAVA by sharadyadav1986
0 votes
0 votes
asked Jun 30, 2022 in JAVA by sharadyadav1986
...