What is an exception in JAVA?
Exception is a type of runtime error while execution of program which user can possibly handle (catch) and report with a suitable message or take some other planned action.
for e.g. divide by zero, array out of bound, file not found
Exception is handled using try-catch syntax of java.
CSKC| Created: 1-Feb-2020 | Updated: 1-Feb-2020|
Exceptions using try-catch