1.no
2. public void method1() throws Exceptio 
   {
     ...
     throw Exception("");
   }
3.no
4.yes

解决方案 »

  1.   

    2. public void method1() throws Exception
      {
        ...
        throw new Exception("");
      }
      

  2.   

     我也是菜鸟,只能回答部分问题:
    2:如果一个方法会导致异常,则用throws.eg:public String getData() throws IOExecption     如果在方法内部代码中产生异常的部分,用throw.eg:if(data==null){throw IOExecption();}
    3:处理异常主要是为了用户感到满意:)当然也为了自己麻烦:)不是都要处理的,看情况了。如果有try(){},就必须有catch{}
    4:finally块中的代码一定会被执行,无论是否产生异常!
      

  3.   

    4.if there have a System.exit() in "catch block",and this "catch block" catched
    the exception ,then,the program will exit,and finally will not be execued 
      

  4.   

    对4的补充:
    当catch block里面出现System.exit() 和error时候
    不执行finally