在Java的java.time包中,哪个类用于表示时间间隔? A. Duration B. Period C. Instant D. ZoneOffset 答案解析 Duration类用于表示时间间隔,它可以表示秒和纳秒的时间间隔。 正确答案:A