🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.An API response holding an order id, status and amount
  2. B.A bank account whose balance changes after every transaction
  3. C.A class that must extend an abstract Employee class
  4. 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 →