This is a question from a mid-term I had awhile ago. I just want to hear what you guys think the answer is, because I just can't agree with the teacher on this.
A(n) ____ is a listener interface that listens for any events that occur during the execution of a program.
A. WindowListener
B. ActionListener
C. ItemListener
D. GarbageListener
The answer, according to her, is ActionListener. When I asked her to explain, she said the other answer were just made up classes anyway so ActionListener is the only possible solution. As far as I can tell, the question simply describes any kind of listener. Btw, I chose WindowListener with no real specific reason.