Java SE 8 Programmer II — Question 193

Which statement is true about java.time.Duration?

Answer options

Correct answer: C

Explanation

The correct answer is C, as java.time.Duration is specifically designed to represent durations of time, such as hours, minutes, and seconds. Options A and B are incorrect because java.time.Duration does not deal with time zones or daylight saving time, which are handled by other classes. Option D is also incorrect as it refers to date-based representations, which are not within the scope of java.time.Duration.