If you want to provide your own code to terminate the program when the window is closed, or if you want the program to take a different action when the window closes, then you use the interface ____.

A. WindowListener
B. ActionListener
C. CloseListener
D. MouseListener


Answer: A

Computer Science & Information Technology

You might also like to view...

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

1. The term "default constructor" is applied to the first constructor written by the author of the class. 2. A method that stores a value in a class's field or in some other way changes the value of a field is known as a mutator method. 3. A constructor is a method that is automatically called when an object is created. 4. The java.lang package is automatically imported into all Java programs. 5. Shadowing is the term used to describe where the field name is hidden by the name of a local or parameter variable.

Computer Science & Information Technology

Why might you choose to use a function template instead of a macro?

What will be an ideal response?

Computer Science & Information Technology

XHTML requires that only properties be separated by semicolons

Indicate whether the statement is true or false

Computer Science & Information Technology

The current version of IMAP is ____.

A. IMAP3rev1 B. IMAP3rev4 C. IMAP4rev1 D. IMAP4rev4

Computer Science & Information Technology