JAVA题库:格林模拟试题二(下)(3)
文章作者 100test 发表时间 2007:03:14 17:05:30
来源 100Test.Com百考试题网
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