Skip to content
Sharp

API Evolution · interview question

How would you explain a potential pitfall of using LocalDateTime for a global e-commerce application in an interview?

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

Correct answer

C. It lacks timezone information

Why

LocalDateTime does not include timezone information, which can lead to inconsistencies when dealing with global applications where users are in different time zones.

Test yourself on API Evolution

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

Start free test
All API Evolution questions →