What happens when an exception is thrown the code of a


1. What kind of values can you throw? Can you throw a string? An integer?

2. What is the purpose of the finally clause? Give an example of how it can be used.

3. What happens when an exception is thrown, the code of a finally clause executes, and that code throws an exception of a different kind than the original one? Which one is caught by a surrounding catch clause? Write a sample program to try it out.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: What happens when an exception is thrown the code of a
Reference No:- TGS01721410

Expected delivery within 24 Hours