black

Java程序设计

登录

单项选择题

现有:
1. class Wrench f
2.public static void main(String [] args) {
3.Wrench w=new Wrench(); Wrench w2=new Wrench();
4. w2=go (w, w2);
5.System.out.print (w2==w);
6. }
7.static Wrench go (Wrench wrl, Wrench wr2) {
8.Wrench wr3=wrl; wrl=wr2; wr2=wr3;
9. return wr3;
10. }
11. }
结果是什么?()

A.false
B.true
C.编译失败
D.运行的时候有异常抛出

相关考题

单项选择题 现有: 1.class Passer f 2.static final int X=5; 3.public static void main (String [] args) { 4.new Passer().go (x); 5.System. out .print (x); 6. ) 7.void go (int x) { 8.System. out .print(x++); 9.} 10.}结果是什么?()

单项选择题 现有如下五个声明: Linel: int a_really_really_really_long_variable_name=5 Line2: int _hi=6; Line3: int big=Integer. getlnteger("7”); Line4:int $dollars=8; line5: int %opercent=9; 哪行无法通过编译?()

单项选择题 下列哪项不是Java语言的关键字?()

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064