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
Q20: This layout manager arranges components in rows.
A)
Q21: JFC stands for:
A) Java Fundamental Classes
B) Java
Q22: When this is the argument passed to
Q23: Which of the following is NOT a
Q24: AWT components are commonly called _ components
Q26: The GridLayout manager limits each cell to
Q27: Assume that radio references a JRadioButton object.
Q28: What will be the result of executing
Q29: Which of the following statements is NOT
Q30: This layout manager arranges components in five
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