Top 10 Questions about Java Exceptions–reference
reference from: http://www.programcreek.com/2013/10/top-10-questions-about-java-exceptions/
This article summarizes the top 10 frequently asked questions about Java exceptions.
1. Checked vs. Unchecked
In brief,checked exceptions must be explicitly caught in a method or declared in the method's throws clause. Unchecked exceptions are caused by problems that can not be solved,such as dividing by zero,null pointer,etc. Checked exceptions are especially important because you expect other developers who use your API to kNow how to handle the exceptions.
For example,IOException is a commonly used checked exception and RuntimeException is an unchecked exception. You can check out the before reading the rest.
The answer is YES. Constructor is a special kind of method. is a code example.