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 Resposta