Multiple choice technology architecture

The Java API uses this pattern in the event model of its AWT/Swing Classes

  1. Strategy Pattern.

  2. Template Pattern.

  3. Observer pattern.

  4. None of the above.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all dependents are notified. Java's AWT and Swing use this in their event model - listeners (observers) register with components (subjects) to receive event notifications.