1 public static void main(String[] args)
2 {
3
4 try
5 {
6 Thread thread = new Thread(){
7 @Override
8 public void run()
9 {
10 int i = 0;
11 System.out.println(2/i);
12 }
13 };
14 thread.start();
15 }
16 catch (Exception e)
17 {
18 System.out.println("exception");
19 }
20 }
哔哔one
相关分类