Module java.base
Package java.lang

Class StringIndexOutOfBoundsException

java.lang.Object
All Implemented Interfaces:
Serializable

public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.
Since:
1.0
See Also: