不可以,这是覆盖,
就是子类已经屏蔽掉了父的该方法,父的该方法已经不可见。
当然如果你显式指明调用父亲的该方法,那就可以用到try catch了。

解决方案 »

  1.   

    什么叫“基类中的异常处理方法”?
    不是说已经在积累里处理掉了吗?怎么使用?
    一般写法:
    class A
    {
       void aaa() throws Exception{}
    }class B extends A
    {
       void aaa()
       {
          try {super.aaa();}
          catch (Exception e)
          {
          }
       }
    }
      

  2.   

    如果子类方法中没有super.aaa();那么两者就是毫无关系的。
      

  3.   


    可以的:
    class A
    {
       void aaa() {
        try{
       //.....some codes here
        }catch(Exception e){ 
       //.....some codes here
       }
       }
    }class B extends A
    {
       void aaa()
       {
        super.aaa()
        //....some code here
       }