Set - 6

Question 6 :

What modifiers may be used with an interface declaration?

Answer :

An interface may be declared as public or abstract.


Question 7 :

Is a class a subclass of itself?

Answer :

A class is a subclass of itself.


Question 8 :

What is the highest-level event class of the event-delegation model?

Answer :

The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy.


Question 9 :

What event results from the clicking of a button?

Answer :

The ActionEvent event is generated as the result of the clicking of a button.


Question 10 :

How can a GUI component handle its own events?

Answer :

A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.