多选题 Given that Integer.parselnt0 throws NumberFormatException, and given:
3. public class Ladder {
4. public static void main(String[] args) {
5. try {
6. System.out.println(doStuff(args));
7. }
8. catch (Exception e) {System.out.println("exc");
9. doStuff(args);
10. }
11. static int doStuff(String[] args) {
12. return Integer.parseInt(args[0]);
13. } }
And, ifthecodecompiles, given the invocation:
java Ladder x
What is the result? (Choose all that apply.)
【正确答案】 C
【答案解析】