In Java, exception can be checked or unchecked. They both fit into a class hierarchy. The following diagram shows Java Exception classes hierarchy.
Red colored are checked exceptions. Any checked exceptions that may be thrown in a method must either be caught or declared in the method’s throws clause. Checked exceptions must be caught at compile time. Checked exceptions are so called because both the Java compiler and the Java virtual machine check to make sure this rule is obeyed. Green colored are uncheck exceptions. They are exceptions that are not expected to be recovered, such as null pointer, divide by 0, etc.
Check out top 10 questions about Java exceptions.
Runtime Exception and Error are Unchecked remaining all checked
Runtime exceptions are compile unchecked know? and other exceptions are compile checked know?
Please somebody guy answer me..
nice one
I wouldn’t say that “Green colored are uncheck exceptions.” they are green on the diagram, it’s more azure or light blue 🙂
I m understand properly see this diagram.
Very Helpful! Thanks
nice !
it’s very useful and clear information, thanks!
very nice
thanks for nice information about exception
darker colored are checked exceptions. Checked exceptions must be caught at compile time. Runtime exceptions do not need to be. Errors often cannot be, as they tend to be unrecoverable.
http://docs.oracle.com/javase/tutorial/essential/exceptions/runtime.html
What these colours show, which are checked Exceptions and which are unchecked exceptions.