Skip to content
Sharp

API Evolution · interview question

Which java.time class is specifically designed to handle a date with time-zone information?

Multiple choiceEasychapter-12-curatedpremiumapi-evolutionmodern-date-and-time
Choose one answer
Answer and explanation

Correct answer

D. ZonedDateTime

Why

ZonedDateTime includes full date and time information along with the time zone, making it ideal for applications needing comprehensive date-time zone data.

Test yourself on API Evolution

A free test with instant, explained results. No account needed.

Start free test
All API Evolution questions →