会计考友 发表于 2012-8-4 12:33:16

2011年JAVA认证模拟题(24)

Q70 What is the output of the following program?   public class Question {
  public static void main(String args[])
  {
  Object[] o = new Object;
  byte[] b = new byte;
  System.out.print(o);
  System.out.println(b);
  }
  }
  A 0
  B o0
  C A NullPointerException is thrown.
  D null0

会计考友 发表于 2012-8-4 12:33:17

2011年JAVA认证模拟题(24)

</p>  Q71 Which of the following are valid Java identifiers?
  A my-id
  B my_id
  C 101ids
  D id101
  Q72 Which methods will cause a Frame to be displayed?
  A pack()
  B setVisible()
  C display()
  D displayFrame()
  Q070 D
  Q071 BD
  Q072 B
页: [1]
查看完整版本: 2011年JAVA认证模拟题(24)