← Quiz: Records and Sealed Classes: all 10 questions
Quiz: Records and Sealed Classes · Question 10 of 10
Which object is a GOOD fit for a record?
Which object is a GOOD fit for a record?
- A.An API response holding an order id, status and amount
- B.A bank account whose balance changes after every transaction
- C.A class that must extend an abstract Employee class
- D.A game character whose position updates every frame
Answer & explanation
Correct answer: An API response holding an order id, status and amount
Records suit fixed data. Objects that change over time or must extend a class should be normal classes.
Can you get the rest right without peeking?
Take the timed Quiz: Records and Sealed Classes quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →