PrepAway - Latest Free Exam Questions & Answers

Which syntax should be used to determine if these two times are on the same date?

You have two IDfTime interfaces, time1 and time2. Which syntax should be used to determine if
these two times are on the same date?

PrepAway - Latest Free Exam Questions & Answers

A.
time1.equals(time2)

B.
time1.getDay().equals(time2.getDay())

C.
time1.asString(“dd”).equals(time2.asString(“dd”))

D.
time1.asString(“yyyy-mm-dd”).equals(time2.asString(“yyyy-mm-dd”))


Leave a Reply