Name
IndexOutOfBoundsException
Synopsis
Signals
that an index is out of bounds. See the subclasses
ArrayIndexOutOfBoundsException
and
StringIndexOutOfBoundsException
.
Figure 10-31. java.lang.IndexOutOfBoundsException
public class IndexOutOfBoundsException extends RuntimeException { // Public Constructors public IndexOutOfBoundsException( ); public IndexOutOfBoundsException(String s); }
Subclasses
ArrayIndexOutOfBoundsException
,
StringIndexOutOfBoundsException
Get Java in a Nutshell, 5th Edition 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.