home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

25.52 java.lang.RuntimeException (JDK 1.0)

This exception type is not used directly, but serves as a superclass of a group of run-time exceptions that need not be declared in the throws clause of a method definition. These exceptions need not be declared because they are run-time conditions that can generally occur in any Java method. Thus, declaring them would be unduly burdensome, and Java does not require it.

public class RuntimeException extends Exception {
    // Public Constructors
            public RuntimeException();
            public RuntimeException(String s);
}

Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException

Extended By:

ArithmeticException, ArrayStoreException, ClassCastException, EmptyStackException, IllegalArgumentException, IllegalMonitorStateException, IllegalStateException, IndexOutOfBoundsException, MissingResourceException, NegativeArraySizeException, NoSuchElementException, NullPointerException, SecurityException


Previous Home Next
java.lang.Runtime (JDK 1.0) Book Index java.lang.SecurityException (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java










??????????????@Mail.ru