以下这段代码运行后的输出结果是什么
发布时间
阅读量:
阅读量
【java面试题35 下列提供的JAVA代码在执行后所呈现的输出结果为()
|1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26|public class Test { ``public static int aMethod(``int i)``throws Exception ``{ ``try``{ ``return i/``10``; ``} ``catch (Exception ex) ``{ ``throw new Exception(``"exception in a aMethod"``); ``}``finally``{ ``System.out.printf(``"finally"``); ``} } ``public static void main(String[] args){ ``try ``{ ``aMethod(``0``); ` $ ` $ ` `
全部评论 (0)
还没有任何评论哟~
