Name
RuntimeException
Synopsis
A base class for Exception subclasses that need not be
be declared in the throws clause of a method definition and, consequently,
application code need not catch. Exceptions of this type are generally
caused by programming errors and need to be addressed during application
development, rather than attempting recovery at run time.
This class is the same as its J2SE equivalent, apart from its inability to be
serialized.
public class RuntimeException extends Exception {
// Public Constructors
public RuntimeException();
public RuntimeException( String s);
}
Subclasses
ArithmeticException, ArrayStoreException, ClassCastException, IllegalArgumentException, IllegalMonitorStateException, IllegalStateException, IndexOutOfBoundsException, NegativeArraySizeException, NullPointerException, SecurityException, java.util.EmptyStackException, java.util.NoSuchElementException
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access