Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.lang

Class ArrayIndexOutOfBoundsException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.RuntimeException
         |
         +--java.lang.IndexOutOfBoundsException
            |
            +--java.lang.ArrayIndexOutOfBoundsException


public class ArrayIndexOutOfBoundsException

extends IndexOutOfBoundsException

Thrown when attempting to access a position outside the valid range of an array. For example:
 int[] i = { 1 };
 i[1] = 2;
 

Authors:

Constructor Summary

ArrayIndexOutOfBoundsException()

Create an exception without a message.
ArrayIndexOutOfBoundsException(java.lang.String s)

Create an exception with a message.
ArrayIndexOutOfBoundsException(int index)

Create an exception indicating the illegal index.

Constructor Details

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException()

Create an exception without a message.


ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(int index)

Create an exception indicating the illegal index.

Parameters:


ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(java.lang.String s)

Create an exception with a message.

Parameters: