Which expressions, when inserted at (1), will result in the following output: date2 is after date1? Select

Question:

Which expressions, when inserted at (1), will result in the following output:

date2 is after date1?

image text in transcribed

Select the five correct answers.
(a) date2.isAfter(date1)
(b) date1.isAfter(date2)
(c) date2.isBefore(date1)
(d) date1.isBefore(date2)
(e) Period.between(date2, date1).isNegative()
(f) Period.between(date1, date2).isNegative()
(g) date2.until(date1).isNegative()
(h) date1.until(date2).isNegative()
(i) date1.compareTo(date2) (j) date2.compareTo(date1)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: