Skip to content
Sharp

Modern Java · interview question

Which Java keyword would you use to create a Java Record?

Multiple choiceEasychapter-12-curatedpremiummodern-javajava-records
Choose one answer
Answer and explanation

Correct answer

A. Record

Why

The 'record' keyword is used to define a Java Record, introducing this new type feature to the language.

Test yourself on Modern Java

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

Start free test
All Modern Java questions →