All About Class IndexOutOfboundException in Java


IndexOutOfboundException object is thrown to indicate that an index (or some sort of ) is out of its allowed range. This is applicable to Array,Vector or a String.Application can subclass this class to indicate similar kind of exception.
The structure of the class is as follows:


public class java.lang.IndexOutOfboundException extends java.lang.RuntimeException{
//constructor
public IndexOutOfboundException();
//constructs an empty IndexOutOfboundException object that is an object with no message specified.
public IndexOutOfboundException(String message);
//constructs an IndexOutOfboundException object with the message specified.

}
 
All About Class IndexOutOfboundException in Java All About Class IndexOutOfboundException in Java Reviewed by Animesh Chatterjee on September 18, 2018 Rating: 5

No comments:

Powered by Blogger.