"Considering a class that implements a listener, which are true?" a) The event handling method is passed a copy of the Event
that occurred.- false passed as ref ???
This must be interpreted as a "copy of the reference to the Event". This part of the test is not about anything but event handling so... Yes, the method is passed a reference to the event (ActionEvent, WindowEvent...)
----------------------------------------
b) It is not appropriate to extend an Adapter class.- true -not
necessary to do so becoz adapterclass already implement the
interface
Just the opposite is true. It is imperative to extend the adapter class for it to be of any use. While it implements all the methods required by the listener interface, these methods don't do anything but return right back. They are meant to be OVERRIDDEN as necessary. because...
------------
c) You need only implement the methods you want to handle, even
if there are more defined in the interface.- false
TRUE. See above. For example the WindowListener interface requires seven (count them!) methods to be implemented. If you are only interested in one (like windowClosing() ), then that's the one you'll have to override in the class that extends WindowAdapter.