## Uses of Class
java.lang.IndexOutOfBoundsException

- Packages that use IndexOutOfBoundsException
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  java.awt.print | Provides classes and interfaces for a general printing API.
  java.lang | Provides classes that are fundamental to the design of the Java programming language.
  javax.management.relation | Provides the definition of the Relation Service.

- - ### Uses of IndexOutOfBoundsException in java.awt

    Methods in java.awt that throw IndexOutOfBoundsException
    Modifier and Type | Method and Description
    --- | ---
    `Cursor` | Toolkit.`createCustomCursor(Image cursor, Point hotSpot, String name)` Creates a new custom cursor object.

  - ### Uses of IndexOutOfBoundsException in java.awt.print

    Methods in java.awt.print that throw IndexOutOfBoundsException
    Modifier and Type | Method and Description
    --- | ---
    `PageFormat` | Pageable.`getPageFormat(int pageIndex)` Returns the `PageFormat` of the page specified by `pageIndex`.
    `PageFormat` | Book.`getPageFormat(int pageIndex)` Returns the `PageFormat` of the page specified by `pageIndex`.
    `Printable` | Pageable.`getPrintable(int pageIndex)` Returns the `Printable` instance responsible for rendering the page specified by `pageIndex`.
    `Printable` | Book.`getPrintable(int pageIndex)` Returns the `Printable` instance responsible for rendering the page specified by `pageIndex`.
    `void` | Book.`setPage(int pageIndex, Printable painter, PageFormat page)` Sets the `PageFormat` and the `Painter` for a specified page number.

  - ### Uses of IndexOutOfBoundsException in java.lang

    Subclasses of IndexOutOfBoundsException in java.lang
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ArrayIndexOutOfBoundsException` Thrown to indicate that an array has been accessed with an illegal index.
    `class` | `StringIndexOutOfBoundsException` Thrown by `String` methods to indicate that an index is either negative or greater than the size of the string.

  - ### Uses of IndexOutOfBoundsException in javax.management.relation

    Methods in javax.management.relation that throw IndexOutOfBoundsException
    Modifier and Type | Method and Description
    --- | ---
    `void` | RoleList.`add(int index, Role role)` Inserts the role specified as an element at the position specified.
    `void` | RoleUnresolvedList.`add(int index, RoleUnresolved role)` Inserts the unresolved role specified as an element at the position specified.
    `boolean` | RoleList.`addAll(int index, RoleList roleList)` Inserts all of the elements in the RoleList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the RoleList specified.
    `boolean` | RoleUnresolvedList.`addAll(int index, RoleUnresolvedList roleList)` Inserts all of the elements in the RoleUnresolvedList specified into this list, starting at the specified position, in the order in which they are returned by the Iterator of the RoleUnresolvedList specified.
    `boolean` | RoleList.`addAll(RoleList roleList)` Appends all the elements in the RoleList specified to the end of the list, in the order in which they are returned by the Iterator of the RoleList specified.
    `boolean` | RoleUnresolvedList.`addAll(RoleUnresolvedList roleList)` Appends all the elements in the RoleUnresolvedList specified to the end of the list, in the order in which they are returned by the Iterator of the RoleUnresolvedList specified.
    `void` | RoleList.`set(int index, Role role)` Sets the element at the position specified to be the role specified.
    `void` | RoleUnresolvedList.`set(int index, RoleUnresolved role)` Sets the element at the position specified to be the unresolved role specified.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.