Skip to content
Sharp

Modern Java · interview question

Which of the following is NOT a feature of Java records?

Multiple choiceEasychapter-7-curatedpremiummodern-javarecords
Choose one answer
Answer and explanation

Correct answer

A. Support for mutable fields.

Why

Java records are designed for immutability, meaning they do not support mutable fields. This is a key characteristic that differentiates them from regular classes.

Test yourself on Modern Java

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

Start free test
All Modern Java questions →