1.

How to get difference between two dates?

A. long diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
B. long diffInMilli = java.time.difference(dateTime1, dateTime2).toMillis();
C. Date diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
D. Time diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
Answer» B. long diffInMilli = java.time.difference(dateTime1, dateTime2).toMillis();


Discussion

No Comment Found