Solved

Consider the Following Code Snippet

Question 14

Multiple Choice

Consider the following code snippet:
Import ____________________
Import java.awt.event.ActionListener;
/**
An action listener that prints.
*/
Public class ClickListener implements ActionListener
{
Public void actionPerformed(ActionEvent event)
{
System.out.println("I was clicked.") ;
}
}
Which of the following statements will complete this code?


A) java.swing.event.ActionEvent;.
B) javax.swing.event.ActionEvent;
C) javax.awt.event.ActionEvent;
D) java.awt.event.ActionEvent;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions