论述题 11.  请给出三种打印异常信息的方法。
【正确答案】示例代码如下:
   public class Test
   {
   public static void main(String args[])
   {
   try
   {
   int result=1/0;
   }
   catch(Exception e)
   {
   System.out.println(e);                //方法1
   System.out.pfintln(e.getMessage());   //方法2
   e.pfintStackTrace();                  //方法3
   }
   }
   }
【答案解析】