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

2011年JAVA认证模拟题(36)

  Q106 Which of the following classes have a paint() method?
  A Canvas
  B Image
  C Frame
  D Graphics
  Q107 Which of the following are true about the File class?
  A A File object can be used to change the current working directory.
  B A File object can be used to access the files in the current working directory.
  C When a File object is created, a corresponding directory or file is created in the local file system.
  D File objects are used to access files and directories on the local file system.
  E File objects can be garbage collected.
  F When a File object is garbage collected, the corresponding file or directory is deleted.
  Q108 What is the output displayed by the following program?
  class Question {
  public static void main (String [] args)
  {
  int n =7;
  n =2;
  System.out.println(n);
  }
  }
  A 0
  B -1
  C 14
  D 64
  Q106 AC
  Q107 BDE
  Q108 C
页: [1]
查看完整版本: 2011年JAVA认证模拟题(36)