Hacker News new | ask | show | jobs
by cpburns2009 3293 days ago
I was under the impression that every method had to declare which exceptions are thrown via the `throws` keyword. Is that not the case?
2 comments

Only for checked exceptions; a RuntimeException does not need to be declared.
Correct, all checked exceptions are declared in the method signature.