Я взял их со схемы исключений
package com.javarush.task.task14.task1419;
import java.io.*;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
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);}
exceptions.add(new ArrayIndexOutOfBoundsException());
exceptions.add(new ArithmeticException());
exceptions.add(new NullPointerException());
exceptions.add(new EOFException());
exceptions.add(new NoSuchElementException());
exceptions.add(new FileNotFoundException());
exceptions.add(new IllegalAccessException());
exceptions.add(new IOException());
exceptions.add(new SQLException());
}
}