下面代码的执行结果是? class Example extends Utils { public static void main(String[] args) { try { System.out.print(new Example().getlnt("42")); } catch (Exception e) { System.out.println("Exc"); } } int getlnt(String arg) throws Exception { return Integer.parseInt(arg); } } class Utils { int getlnt() { return 42; } }
发布于 2020-12-25 22:05:48
登录后免费查看答案
关注者
0
被浏览
43