Exception Handling Style
a. What might be the purpose of the following code structure? Notice that there is a finally block but there are no catch blocks. Give a realistic example in which you might use such a structure.
try {.. code …} finally {… code …}b. Why is the following code structure poorly written?
try {… code …} catch (Exception e) {… handler code …} catch (IOException) {… handler code …}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.