Java - Custom Exceptions

Antony, Joms


Outline: - What is a Custom Exception; - Demonstration of custom exception; - Custom exception example - "InvalidMarkException"; - Usage of "throw" keyword; - How to resolve errors in custom exceptions; - Resolve error using "Add throws declaration" option; - Usage of "throws" keyword; - Example for "FileNotFoundException"; - How to handle multiple exceptions; - How to use "surround with try/catch" option. Pre-requisite: Java - Exception Handling

Published by:

Spoken Tutorial IIT Bombay

DOER Persistent Identifier: