单项选择题
A. p.setWeight(420);
B. p.changePayload(420);
C. p = new Payload(420);
D. Payload.setWeight(420);
E. p = Payload.setWeight(420);
F. p = new Payload(); p.setWeight(420);
多项选择题 11.publicclassCommander{ 12.publicstaticvoidmain(String[]args){ 13.StringmyProp=/*insertcodehere*/ 14.System.out.println(myProp); 15.} 16.} andthecommandline: java-Dprop.custom=gobstopperCommander Whichtwo,placedonline13,willproducetheoutputgobstopper?()
单项选择题 public class Yippee2 { static public void main(String [] yahoo) { for(int x= 1; xSystem.out.print(yahoo[x] + “ “); } } } and the command line invocation: java Yippee2 a b c What is the result?()
单项选择题 public class Yippee { public static void main(String [] args) { for(int x = 1; x < args.length; x++) { System.out.print(args[x] +“ “); } } } and two separate command line invocations: java Yippee java Yippee 1234 What is the result?()