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

Computer Science & Information Technology

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

Computer Science & Information Technology

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.

Computer Science & Information Technology

A schema is a set of letters or numbers that represents a data item.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

How can you assign nondefault values to array elements when the array is declared? Give an example.

What will be an ideal response?

Computer Science & Information Technology