+ 1
What is main by check exceptiona?
2 Réponses
+ 1
exceptions are of two types : checked ( compile time ) & unchecked ( runtime )
check exceptions need to be rectified lest your program wont work
can use try & catch block
+ 1
Checked exceptions will be caught during compile time like FileNotFoundException. You need to sorround the code with try / catch block or make method as throws that exception