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.
C) Creates an AddButtonListener object and registers the AddButtonListener object with the addButton
You might also like to view...
A printer can be ________ on a network to eliminate purchase of additional equipment
Fill in the blank(s) with correct word
You can type text in either a shape such as a circle or in a text box
Indicate whether the statement is true or false.
A schema is a set of letters or numbers that represents a data item.
Answer the following statement true (T) or false (F)
How can you assign nondefault values to array elements when the array is declared? Give an example.
What will be an ideal response?