Which statement is true about java.time.Duration?

Which statement is true about java.time.Duration?
A. It tracks time zones.
B. It preserves daylight saving time.
C. It defines time-based values.
D. It defines date-based values.

Download Printable PDF. VALID exam to help you PASS.

4 thoughts on “Which statement is true about java.time.Duration?

  1. Duration deals with time. for example LocalTime gabzTime = LocalTime.of(12, 51, 0); LocalTime ghettoTime = gabzTime.plus(Duration.ofSeconds(45)) ;
    long timeDiff = Duration.between(gabzTime, ghettoTime); // 45 seconds

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.