Y
Hacker News
new
|
ask
|
show
|
jobs
by
hythloday
5221 days ago
I think it
is
a fair example: both NumberFormatException and IOException are checked exceptions, so the code will fail to compile if they're not caught.
1 comments
anonova
5221 days ago
Despite being checked, they do not necessarily have to be caught if you add a `throws` clause in the method declaration.
link