Exception handling

Tue Jan 24, 2012 9:06 am

public class S{

   public static 
void main(String args[]){
int a[] = new int[2];
System.out.println("Access element three :" a[3]);
ArrayIndexOutOfBoundsException e){
System.out.println("Exception thrown  :" e);
a[0] = 6;
System.out.println("First element value: " +a[0]);
System.out.println("The finally statement is executed");

  Related Posts  to : Exception handling
 Exception Handling in a project     -  
 how to design a exception handling for a project     -  
 exception handling try and catch in Python     -  
 Out of Bounds exception     -  
 Exception is not clear     -  
 String Too Long Exception     -  
 Exception Handler in java     -  
 Multiple Exception Catching     -  
 Define your own exception class     -  
 java.security Exception in Applet     -  

Topic Tags

Java Exceptions