in JAVA by
Q:
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

+1 vote
asked May 31, 2020 in JAVA by SakshiSharma
...