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.

                  Returned By
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

Get J2ME in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.