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

2011年JAVA认证模拟题(41)

  Q121 Which method sets the size and position of a component?
  A setBounds();
  B setSizeAndPosition()
  C setComponentSize()
  D setComponent()
  Q122 Which of the following are true?
  A The InputStream and outputStream classes are byte-oriented.
  B The ObjectInputStream and ObjectOutputStream classes do not support serialized object input and output.
  C The Reader and Writer classes are character-oriented.
  D The Reader and Writer classes are the preferred solution to serialized object output.
  Q123 What is the result of the following program?
  class Question {
  public static void main (String[] args)
  {
  int i =7;
  int j =8;
  int n = (i | j) % (i & j);
  System.out.print(n);
  }
  }
  A 0
  B 15
  C An ArithmeticException is thrown.
  D -15
  Q121 A
  Q122 AC
  Q123 C
页: [1]
查看完整版本: 2011年JAVA认证模拟题(41)