adspace
Explain how an exception handler is defined and invoked in a Program.
Answer Posted / Rahul Kumar Singh
An exception handler is defined using try, catch, and throw keywords. A try block contains the code that may throw exceptions. One or more catch blocks follow the try block and handle the exceptions of specific types. The throw keyword is used to generate an exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers