black

Java认证考试综合练习

登录

单项选择题

class MyApp{  
public static void main(String[] args){  int age;  
System.out.println(“age=”+age);  }  }  
执行上述代码后输出的结果是哪项?()  

A.age=0
B.age=null
C.age=
D.程序编译错误

相关考题

单项选择题 class Beta {   public static void main(String [] args) {   Integer x = new Integer(6) * 7;   if (x != 42) {   System.out.print("42 ");   } else if (x.equals(42)) {   System.out.print("dot = ");   } else {   System.out.print("done");   } } }   结果为:()

单项选择题 class Account {   private int balance;   public void setBalance(int b) { balance = b; }  public int getBalance() { return balance; }   public void clearBalance() { balance = 0; }   }   哪一个改变可以使 Account 类线程安全?()

单项选择题 使GUI事件处理器生效的方法是:()

All Rights Reserved 版权所有©求知题库网库(csqiuzhi.com)

备案号:湘ICP备14005140号-1

经营许可证号:湘B2-20140064