现有: 3. class Parser extends Utils {
4. public static void main(String [] args) {
5. System.out.print(new Parser().getInt(“42“));
6. }
7. int getInt(String arg) {
8. return Integer.parseInt(arg);
9. }
10. }
11. class Utils {
12. int getInt(String arg) throws Exception { return 42; }
13. }
结果为: