多选题 Given:
3. public class Chopper {
4. String a = "12b";
5. public static void main(String[] args) {
6. System.out.println (new Chopper().chop(args[0]));
7. }
8. int chop(String a) {
9. if(a == null) throw new IllegalArgumentException();
10. return Integer.parseInt(a);
11. } }
And, if the code compiles, the invocation:
java Chopper
What is the result?
【正确答案】 G
【答案解析】