Java认证模考试题(十一)
文章作者 100test 发表时间 2007:03:14 17:02:33
来源 100Test.Com百考试题网
Question: 56
Which are not containers in Java?
A. ScrollPane
B. Canvas
C. Scrollbar
D. Applet
E. Dialog
Explanation:
Scrollbar and Canvas are not containers. The following classes are containers in Java: Panel, Window, ScrollPane, Dialog, Frame, Applet.
Correct Answer: B,C 56 of 60
Question: 57
Which of the following method can be used to define a new thread class?
A. implement the Runnable interface
B. add a run() method in the class
C. create an instance of Thread
D. extend the Thread class
Explanation:
Two methods can define a new thread class: to implement the Runnable interface or to extend the Thread class.
Correct Answer: A,D 57 of 60
Question: 58
Which of the following I/O stream are node streams?
A. FileInputStream
B. BufferedInputStream
C. PushbackInputStream
D. ByteArrayInputStream
Explanation:
The FileInputStream and ByteArrayInputStream are node streams. The BufferedInputStream and PushbackInputStream are filter streams.
Correct Answer: A,D 58 of 60