Which of the following statements is true?

a. The catch block contains the code that might throw an exception.
b. The try block contains the code that handles the exception if one occurs.
c. You can have many catch blocks to handle different types of exceptions.
d. When a try block terminates, any variables declared in the try block are preserved.


c. You can have many catch blocks to handle different types of exceptions.

Computer Science & Information Technology

You might also like to view...

You can use the attribute value _self with the target attribute when you want a link to:

A) open in the frame that contains the current frameset. B) open in the current window. C) display in a new window. D) open in the same frame that contains the link.

Computer Science & Information Technology

____ galleries include Artist Surfaces, Color Paper, Nature Patterns, and Rock Patterns, among others.

a. Layer b. Montage c. Texture d. Pattern

Computer Science & Information Technology

How does the number of colors a monitor displays affects image quality?

What will be an ideal response?

Computer Science & Information Technology

If a border style is specified that is not supported, what does the border style default to?

A. solid B. double C. dashed D. none

Computer Science & Information Technology