Solved

Consider the Following Code Snippet

Question 57

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents