You are on page 1of 1

Yuvraj Manchanda

s0546668

Fill in the Blanks:

1. When an error occurs within a method, the method creates an ______ and hands it off to the
runtime system.

2. The object, called an ___________, contains information about the error, including its type and
the state of the program when the error occurred.

Choose True or False:

3. The set of possible "somethings" to handle the exception is the ordered list of methods that had
been called to get to the method where the error occurred. The list of methods is known as the
call stack.

a. True
b. False

4. The third kind of exception is the error.

a. True
b. False

5. What is the use of the java throw keyword?

Answers:

1. Object

2. Exception object

3. True

4. False

5. The throw keyword is used to create a custom error

You might also like