10 исключений, вроде. Я пересчитывал.
package com.javarush.task.task14.task1419;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class Solution {
public static List<Exception> exceptions = new ArrayList<Exception>();
public static void main(String[] args) {
initExceptions();
for (Exception exception : exceptions) {
System.out.println(exception); }}
private static void initExceptions() { //the first exception
try {
float i = 1 / 0;}
catch (Exception e) {exceptions.add(e);}
try { //2
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(reader.readLine());
} catch (IOException e) {exceptions.add(e);}
try{ //3
int a = -1;
exceptions.add(a, new NullPointerException());
}catch (ArrayIndexOutOfBoundsException e) {exceptions.add(e);}
try{ //4
int a = 1 / 0;
}catch (ArithmeticException e) {exceptions.add(e);}
try { //5
String s = null;
System.out.println(s);
} catch (NullPointerException e) {exceptions.add(e);}
try { //6
String s = "A";
int i = Integer.parseInt(s);
} catch (ClassCastException e) {exceptions.add(e);}
try{ //7
int a = 2 / 0;
}catch (RuntimeException e) {exceptions.add(e);}
try{ //8
FileInputStream fin = new FileInputStream("d:/rrrr.txt");
}catch (FileNotFoundException e) {exceptions.add(e);}
try{ //9
Thread t = new Thread();
t.sleep(555);
}catch (InterruptedException e) {exceptions.add(e);}
try{ //10
String CatName = null;
System.out.println(CatName);
}catch (UnsupportedOperationException e) {exceptions.add(e);}
}
}