单选题

下面代码的执行结果是? 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
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看