3 ms·
Java is special in this regard because the common case of letting an exception terminate the program is harder than ignoring it. When I was still writing Java,
by lolc 7y ago
Java is special in this regard because the common case of letting an exception terminate the program is harder than ignoring it. When I was still writing Java, I'd gotten so annoyed by this that in the top layers every method "throws Exception". It was less verbose than promoting all the checked exceptions to runtime errors.
Unfortunately people don't know about this possibility and write empty catch statements because "it's not going to happen anyway". Yeah right.