checked exception? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

checked exception?

in checked exception, Like if use fileReader then u will get compilation error, to handle either we use throws or try-catch block...So my question is... in checked exception as we get error in compilation time...then how try catch block handle it ? when we use try-catch why don't it show compilation error ? does javac check there is any try catch block or not?

13th Jul 2017, 7:10 AM
Somnath Ghosh
Somnath Ghosh - avatar
0 Réponse