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

1. In a Swing program, throwing an uncaught exception may leave the program in an unpredictable
state.
2. A window listener must define all the method headings in the WindowListener interface, even if
some are trivial implementations.
3. The dispose method of the JFrame class terminates a Java program.
4. A view port shows only part of the text at one time.
5. If the policies for scroll bars are never set then the scroll bars will never be visible.


1. True
2. True
3. False
4. True
5. False

Computer Science & Information Technology

You might also like to view...

The date selected in a MonthCalendar is stored in its ________ property.

a) SelectionStart b) Now c) Date d) Value e) Day

Computer Science & Information Technology

Which of the following statements is false?

a. Most classes you’ll use in Java programs must be imported explicitly. b. There’s a special relationship between classes that are compiled in the same directory. By default, such classes are considered to be in the same package—known as the default package. c. Classes in the same package are implicitly imported into main. d. An import declaration is not required when one class in a package uses another in the same package.

Computer Science & Information Technology

Which of the following is a field whose values are retrieved from another table or form?

A) Control B) Text box C) Lookup field D) Control button

Computer Science & Information Technology

In the accompanying figure, Item 3 points to the Total Row check box, which inserts a ____ that contains a Total label.

A. new cell B. new row C. new header D. new table

Computer Science & Information Technology