Ask Question
19 March, 14:20

A program to illustrate exceptional handling

+2
Answers (1)
  1. 19 March, 15:47
    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?
Find an answer to your question ✅ “A program to illustrate exceptional handling ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers