To catch an exception, the code that might throw the exception must be enclosed in a ________.

a. throws block.
b. catch block.
c. try block.
d. finally block.


c. try block.

Computer Science & Information Technology

You might also like to view...

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

1. The process of creating a high-quality program only involves writing code. 2. Flow charting is a tool that programmers use to design programs, and is considered superior to pseudocode. 3. Virtually all nontrivial code contains syntax errors when it is first written. 4. A logic error is a mistake that causes a program to generate incorrect results.

Computer Science & Information Technology

To rotate an object counter-clockwise, you use a(n) ____ value for the angle of rotation.

A. positive B. negative C. specific D. average

Computer Science & Information Technology

If a radio button is selected, its ______________ property contains the Boolean value True.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

You can fool the eye when you replace ____________________ in an image.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology