单项选择题
A.JFrame B.JApplet C.JDialog D.以上皆是
class Output { public static void main(String [] args)...
class Output { public static void main(String [] args) { int i = 4; System.out.print("3" + i + " "); System.out.print(i + 4 + "6"); System.out.println(i + "7"); } } 结果为()
A.7 8611 B.7 44647 C.34 8611 D.34 8647
class Wrench { public static void main(String [] args)...
class Wrench { public static void main(String [] args) { Wrench w = new Wrench(); Wrench w2 = new Wrench(); w2 = go(w,w2); System.out.print(w2 == w); } static Wrench go(Wrench wr1, Wrench wr2) { Wrench wr3 = wr1; wr1 = wr2; wr2 = wr3; return wr3; } } 结果是什么?()
A.true B.false C.编译失败 D.输出不可预期
class Passer { static final int x = 5; public static ...
class Passer { static final int x = 5; public static void main(String [] args) { new Passer().go(x); System.out.print(x); } void go(int x) { System.out.print(++x); } } 结果是什么?()
A.55 B.56 C.65 D.66