首页 › 答案 › 题库 › 知到智慧树 › 未分类

下面这段程序的输出结果是error。这种说法对吗?

下面这段程序的输出结果是error。这种说法对吗?
public void compute(){ ;try{ ;System.out.println(3/0); }
;catch(Exception e){System.out.println(';error';);
; }
; finally{System.out.println(';final';); }
}()。
A.正确
B.错误
正确答案:错误