+1 vote
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.

Compilation error

Runtime error

Period: 1

Period: P-1M

Related questions

0 votes
asked Mar 20, 2021 in JavaScript by sharadyadav1986
+1 vote
asked Feb 6, 2020 in JavaScript by rajeshsharma
...