Ask Question
10 June, 13:10

A program to illustrate exceptional handling

+4
Answers (1)
  1. 10 June, 13:50
    0
    You surround your part of the program that can throw exceptions with a

    try { ... } block and place a catch ( ...) { ... } directly below it.

    You could put code in the try block that divides by zero to see an exception in action. Alternatively, you can throw one yourself using the throw keyword.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A program to illustrate exceptional handling ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers