API Evolution · interview question
Which legacy Java seam is usually the safest first modernization target?
Multiple choiceMediumchapter-12-curatedpremiumapi-evolutionmigration-strategy
Answer and explanation
Correct answer
A. A DTO, value object, or local switch with stable and verifiable behavior
Why
Small value types and localized logic are easier to characterize and refactor safely. Once those seams are modernized, the surrounding code becomes easier to improve next.
Test yourself on API Evolution
A free test with instant, explained results. No account needed.
More API Evolution questions
- What does subtracting one month from March 31 using java.time.LocalDate evaluate to?
- How does java.time.Instant ensure thread safety?
- What will be the output of the following code? LocalDate date = LocalDate.of(2023, 2, 28); LocalDate newDate =…
- How would you calculate the number of days between two java.time.LocalDate objects?
- When comparing two Instant objects, which method would you use?
- What will be the result of comparing two ZonedDateTime objects from different time zones but representing the same…