Ben Chuanlong Du's Blog

It is never too late to learn.

Exceptions in Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. You can suppress warnings of unchecked exceptions by using

    SuppressWarnings("unchecked")
    

    but generally speaking, you cannot suppress warnings of checked exceptions.

  2. You can use more than one catch blocks if necessary …

Exception Error and Critical

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels

Java

An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch. Most such errors are …