What is the general function of the Period and Duration classes?

What is the general function of the Period and Duration classes?



Answer: Both classes share the same methods that allow them to manage spans of their respective units: Period corresponds to date and Duration corresponds to time. They can be created with generic methods such as ofYears(5), ofMinutes(3), between(ld1, ld2), etc.


Learn More :

Data Structures

Learn More Multiple Choice Question :

Prev Question