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

Quiz: Encapsulation and Abstraction · Question 3 of 10

Which statement is correct?

Which statement is correct?

  1. A.Abstraction and encapsulation are the same
  2. B.Abstraction hides complexity; encapsulation protects data
  3. C.Encapsulation is only for Python
  4. D.Abstraction requires private fields
Answer & explanation

Correct answer: Abstraction hides complexity; encapsulation protects data

They are related but solve different problems.

Can you get the rest right without peeking?

Take the timed Quiz: Encapsulation and Abstraction quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →