Beruflich Dokumente
Kultur Dokumente
TYPES
Exceptions are conditions within the code. A developer can handle such
conditions and take necessary corrective actions. Few examples
DivideByZero exception
NullPointerException
ArithmeticException
ArrayIndexOutOfBoundsException
EG
public class ExcepTest{
}
finally{
a[0] = 6;
System.out.println("First element value: " +a[0]);
System.out.println("The finally statement is executed");
}
}
}