🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: OOP Interview Questions: all 10 questions

Quiz: OOP Interview Questions · Question 8 of 10

What are an object's identity, state and behaviour?

What are an object's identity, state and behaviour?

  1. A.Its class name, its package and its constructor
  2. B.Its fields, its methods and its interfaces
  3. C.Its parent, its children and its siblings
  4. D.Which object it is (its reference), its field values, and its methods
Answer & explanation

Correct answer: Which object it is (its reference), its field values, and its methods

Two objects can have equal state but different identity.

Can you get the rest right without peeking?

Take the timed Quiz: OOP Interview Questions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →