JAVA题库:格林模拟试题二(下)2
来源:优易学  2010-1-15 11:38:33   【优易学:中国教育考试门户网】   资料下载   IT书店

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

[1] [2] 下一页

责任编辑:cyth

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训