Day 15 - 10 Oct - Exception handling start π
Definition
The try-catch Block
try-catch Blocktry {
// Code that may throw an exception
} catch (ExceptionType e) {
// Handle the exception
}Details About Types of Exceptions
Checked Exceptions (Compiler Time Exception)
Unchecked Exceptions (Runtime Exceptions)
Last updated