class TryClass{ public static void main(String args[]) { int demO=0; try{ System.out.println(20/demO); }catch(ArithmeticException a){ System.out.println(“Can not divided by zero”); } } }//源代码片段来自云代码http://yuncode.net