Exception Handling techniques using nested try and multiple catch blocks with an example program
Answers
Answered by
0
Answer:
Below
Explanation:
in Java, we can use a try block within a try block. Each time a try statement is entered, the context of that exception is pushed on to a stack. Given below is an example of a nested try. In this example, inner try block (or try-block2) is used to handle ArithmeticException,
Similar questions
Business Studies,
1 month ago
Hindi,
1 month ago
Math,
1 month ago
Math,
3 months ago
Chemistry,
9 months ago