单项选择题X 纠错
A.Compilation fails.
B.Cannot add Toppings
C.The code runs with no output.
D.A NullPointerException is thrown in Line 4.
你可能喜欢
单项选择题
A.Tight coupling
B.Low cohesion
C.High cohesion
D.Loose coupling
E.Weak encapsulation
F.Strong encapsulation
多项选择题
A.super(name, baseSalary);
B.this.commission = commission;
C.super(); this.commission = commission;
D.this.commission = commission; super();
E.super(name, baseSalary); this.commission = commission;
多项选择题
A.x.a2();
B.z.a2();
C.z.c1();
D.z.a1();
E.y.c1();
F.x.a1();
单项选择题
A.peep
B.bark
C.meow
D.Compilation fails.
E.An exception is thrown at runtime.
单项选择题
A.Line 4 of class Target can be changed to return i++;
B.Line 2 of class Target can be changed to private int i = 1;
C.Line 3 of class Target can be changed to private int addOne(){
D.Line 2 of class Target can be changed to private Integer i = 0;
单项选择题
A.assert value == null;
B.assert value != null, "value is null";
C.if (value == null) { throw new AssertionException("value is null"); }
D.if (value == null) { throw new IllegalArgumentException("value is null"); }
单项选择题
A.Tight coupling
B.Low cohesion
C.High cohesion
D.Loose coupling
E.Weak encapsulation
单项选择题
A.b = nf.parse( input );
B.b = nf.format( input );
C.b = nf.equals( input );
D.b = nf.parseObject( input );
单项选择题
A.ad
B.ada
C.add
D.adad
单项选择题
A.0
B.1
C.4
D.Compilation fails.