Skip to content
Sharp

API Evolution · interview question

Which java.time class would you use to represent a date and time without timezone information?

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

Correct answer

A. LocalDateTime

Why

LocalDateTime represents a date and time without any timezone information, making it suitable for local date and time operations.

Test yourself on API Evolution

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

Start free test
All API Evolution questions →