Intel

Developer Zone

ArrayIndexOutOfBoundsException

java.lang

Class ArrayIndexOutOfBoundsException



  • public class ArrayIndexOutOfBoundsException
    extends IndexOutOfBoundsException
    Thrown when the an array is indexed with a value less than zero, or greater than or equal to the size of the array.
    • Constructor Detail

      • ArrayIndexOutOfBoundsException

        public ArrayIndexOutOfBoundsException()
        Constructs a new ArrayIndexOutOfBoundsException that includes the current stack trace.
      • ArrayIndexOutOfBoundsException

        public ArrayIndexOutOfBoundsException(int index)
        Constructs a new ArrayIndexOutOfBoundsException with the current stack trace and a detail message that is based on the specified invalid index.
        Parameters:
        index - the invalid index.
      • ArrayIndexOutOfBoundsException

        public ArrayIndexOutOfBoundsException(String detailMessage)
        Constructs a new ArrayIndexOutOfBoundsException with the current stack trace and the specified detail message.
        Parameters:
        detailMessage - the detail message for this exception.