public class Ex5 {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
int num[]=new int[10];
System.out.println("num[10] is"+num[10]);
}catch(RuntimeException ex) {
System.out.println("RuntimeException");
}catch(ArithmeticException ex) {
System.out.println("ArithmeticException");
}
}
}