Menu

[Solved]1 Throw Keyword Redirects Compiler Solution Exception B Sends Compiler End Program C Send Q37188803

1. What does the throw keyword do?

A. It redirects the compiler to a solution for an exception.

B. It sends the compiler to the end of a program.

C. It sends the exception object out of a block/method so it canbe dealt with somewhere else.

D. It sends a message to your operating system to shut down yourcomputer.

2. Which block allows you to test code that may have anexception?

Word Answer:

3.  Which of the following is FALSE regardingblocks used in exception handling?

A. A catch block can only handle one type of exception.

B. You can only have one catch block in a program.

C. A throw statement can be included in a try block.

D. The finally block must be placed after a catch block.

4. Which of these is not an example of polymorphism inaction?

A. An overloaded method

B. An ArrayList

C. A overridden method

D. An updated variable

5. Fill in the Blanks

A collection of constants and methods (without bodies ofcode) is called a/an

Expert Answer


Answer to 1. What does the throw keyword do? A. It redirects the compiler to a solution for an exception. B. It sends the compiler… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *