可学答题网 > 问答 > Java程序设计题库,初级程序员题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

现有: 1. class Wrench f 2.public static


现有: 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. } 结果是什么?()

  • Afalse
  • Btrue
  • C编译失败
  • D运行的时候有异常抛出
参考答案
参考解析:
分类:Java程序设计题库,初级程序员题库
相关推荐

1、public class Pass{ public static void

public class Pass{public static void main(String[]args){int x=5;Pass p=new Pass();p.doStuff(x);System.out.print("mainx="+x);}void doStuff(intx...

2、public class Test{ public static void

public class Test{public static void main(String[]args){intx=5;boolean b1=true;boolean b2=false;if((x==4)&&!b2)System.out.print("l");System.out.pr...

3、现有:  class TestFoo f&e

现有: class TestFoo f     int x; String y; int  getX()  {  return&ensp...

4、class Passer {  static

class Passer { static final int x = 5; public static void main(String [] args) {new&ens...

5、现有: class TestApp{ public static void

现有:class TestApp{public static void main (String[] args){for (int i=0; iA0123B012456789C0123456789D012

6、现有:  class Wrench f&en

现有: class Wrench f public static void main(String  []  args)  { Wrench w=new Wre...