What does the following statement do? addButton.addActionListener(new AddButtonListener() ) ;
A) Creates an AddButtonListener object
B) Registers the addButton object as an ActionListener with the AddButtonListener object
C) Creates an AddButtonListener object and registers the AddButtonListener object with the addButton
D) Nothing,the statement is invalid
Correct Answer:
Verified
Q9: A GUI program automatically stops executing when
Q21: JFC stands for:
A) Java Fundamental Classes
B) Java
Q22: When this is the argument passed to
Q29: What will be the result of executing
Q30: Which of the following is not a
Q32: These types of components are coupled with
Q34: Event listeners must:
A) implement an interface
B) be
Q35: This is a graphic image that is
Q36: When a component is added to a
Q60: Assume that the variable checkbox references a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents