就业数据资源平台
当前位置:首页 > Java语言程序设计
JAVA题库:格林模拟试题二(下)3

  Question 36)
  Which of the following are Java key words
  1)double
  2)Switch
  3)then
  4)instanceof
  Question 37)
  What will be output by the following line?
  System.out.println(Math.floor(-2.1));
  1) -2
  2) 2.0
  3) -3
  4) -3.0
  Question 38)
  Given the following main method in a class called Cycle and a command line of
  java Cycle one two
  what will be output?
  public static void main(String bicycle[]){        System.out.println(bicycle[0]);}
  1) None of these options
  2) cycle
  3) one
  4) two
  Question 39)
  Which of the following statements are true?
  1) At the root of the collection hierarchy is a class called Collection
  2) The collection interface contains a method called enumerator
  3) The interator method returns an instance of the Vector class
  4) The Set interface is designed for unique elements
就业数据资源平台