Which of the following statements are true?

a. You use the keyword throws to declare exceptions in the method heading.
b. A method may declare to throw multiple exceptions.
c. To throw an exception, use the key word throw.
d. If a checked exception occurs in a method, it must be either caught or declared to be thrown from the method.


a. You use the keyword throws to declare exceptions in the method heading.
b. A method may declare to throw multiple exceptions.
c. To throw an exception, use the key word throw.
d. If a checked exception occurs in a method, it must be either caught or declared to be thrown from the method.

Computer Science & Information Technology

You might also like to view...

Security and recovery are two important functions of a Database Management System, which are also of interest to Database Administration. Various facilities can be provided to aid both these functions. Explain what these facilities are and with examples, show how Database Administration could effectively use them.

What will be an ideal response?

Computer Science & Information Technology

Discuss at least three different ways to locate high-quality images for a Web site.

What will be an ideal response?

Computer Science & Information Technology

To create a text box, click the ____ tool on the Tools panel

A. Text B. Insert C. Type D. Box

Computer Science & Information Technology

The ampersand, &, is called the ____.

A. address of operator B. sizeof operator C. entry operator D. heap operator

Computer Science & Information Technology