@@ -0,0 +1,1474 @@
+package com.njust.test.multiple;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.concurrent.ExecutorService;%0Aimport java.util.concurrent.Executors;%0Aimport java.util.concurrent.Future;%0A%0Aimport org.junit.Test;%0A%0A/*%0A *%E5%AF%B9%E4%BA%8E%E7%BA%BF%E7%A8%8B%E6%B1%A0%E4%B8%AD%E7%9A%84%E5%BC%82%E5%B8%B8%E5%A4%84%E7%90%86%0A * %3Cp%3E%0A %0A */%0Apublic class TestUncaughtException2%0A%7B%0A    /**%0A     * 1.%E7%BA%BF%E7%A8%8B%E6%B1%A0%E5%90%AF%E5%8A%A8%E7%9A%84%E7%BA%BF%E7%A8%8B%E4%B8%AD%E5%8F%91%E7%94%9F%E8%BF%90%E8%A1%8C%E6%97%B6%E5%BC%82%E5%B8%B8%E7%9A%84%E8%AF%9D%EF%BC%8C%E5%BD%93%E9%80%9A%E8%BF%87future.get()%E6%96%B9%E6%B3%95%E6%97%B6%EF%BC%8C%E6%89%8D%E4%BC%9A%E5%BE%97%E5%88%B0run%E6%96%B9%E6%B3%95%E4%B8%AD%E7%9A%84%E5%BC%82%E5%B8%B8%0A     * %3Cpre%3E%0A     * error1:java.lang.ArithmeticException: / by zero%0A     * error2:java.lang.NullPointerException%0A     * %3C/pre%3E%0A     */%0A    @Test%0A    public void test01()%0A    %7B%0A        ExecutorService fixedThreadPool = Executors.newFixedThreadPool(2);%0A        Future%3CInteger%3E future1 = fixedThreadPool.submit(() -%3E %7B%0A            int a = 1;%0A            int b = 0;%0A            return a / b;%0A        %7D);%0A        %0A        Future%3CBoolean%3E future2 = fixedThreadPool.submit(() -%3E %7B%0A            Map%3CString, String%3E map = new HashMap%3C%3E();%0A            return map.get(%22111%22).contains(%22xxx%22);%0A        %7D);%0A        %0A        try%0A        %7B%0A            Integer result1 = future1.get();%0A            System.out.println(%22result1:%22 + result1);%0A        %7D%0A        catch (Exception e)%0A        %7B%0A            System.err.println(%22error1:%22 + e.getMessage());%0A        %7D%0A        %0A        try%0A        %7B%0A            Boolean result2 = future2.get();%0A            System.out.println(%22result2:%22 + result2);%0A        %7D%0A        catch (Exception e)%0A        %7B%0A            System.err.println(%22error2:%22 + e.getMessage());%0A        %7D%0A        %0A    %7D%0A    %0A%7D%0A

Create TestUncaughtException2.java