In a nutshell, in Java, there are RuntimeExceptions, CheckedExceptions and Errors. 1. Errors are fatal occurrences you can’t handle – like an java.lang.OutOfMemoryError. You should do everything possible to code in such a way that it never happens, however, if it does, there ...
Read more »