Easy learning with example program codes

what are runtime exceptions in java?

Runtime exceptions are checked at runtime. These are also known as unchecked exceptions. Unchecked exceptions are those exceptional conditions that are not checked by compiler at the compile time. Unchecked exceptions are checked at runtime. An unchecked exception not forces you to either use try-catch or throws. RuntimeException and their subclasses are unchecked exceptions. This Exception can be avoided by programmer.
e.g. – NullPointerException, ArithmeticException etc.

Java interview questions on exception handling

Copyright © 2018 CodesJava Protection Status SiteMap