March 2002
Intermediate to advanced
480 pages
18h 40m
English
IndexOutOfBoundsException
This exception indicates that an operation used an index value that was
invalid for the given data. J2SE provides two subclasses of
IndexOutOfBoundsException that are commonly used
with arrays and strings:
ArrayIndexOutOfBoundsException and
StringIndexOutOfBoundsException. This class is the same
as its J2SE equivalent, apart from its inability to be serialized.
public class IndexOutOfBoundsException extends RuntimeException {
// Public Constructors
public IndexOutOfBoundsException();
public IndexOutOfBoundsException( String s);
}
ArrayIndexOutOfBoundsException, StringIndexOutOfBoundsException
Read now
Unlock full access