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

Quiz: SOLID in Java · Question 1 of 10

In the original ResultService.publish(), how many different reasons to change did the class have?

In the original ResultService.publish(), how many different reasons to change did the class have?

  1. A.One — it only publishes results
  2. B.Two — calculation and saving
  3. C.Four — grading rules, output format, storage and notification channel
  4. D.None, because it is a single method
Answer & explanation

Correct answer: Four — grading rules, output format, storage and notification channel

Each of those can change independently, and every change touches the same method.

Can you get the rest right without peeking?

Take the timed Quiz: SOLID in Java quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →