publicstaticvoidmain(String[] args){
CompletableFuture<Integer> f1 =CompletableFuture.supplyAsync(()->{
int i =1/0;return1;});CompletableFuture.allOf(f1).join();System.out.println("CompletableFuture Test");}
Exception in thread "main"java.util.concurrent.CompletionException:java.lang.ArithmeticException:/ by zero
at java