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



相关文章


Java经典模拟题(onlyfortrainning)(2)
Java经典模拟题(onlyfortrainning)(1)
理解JavaHelp结构的好处
java入门Java中的日期处理
Java认证模考试题(十一)
Java认证模考试题(九)
了解Java密码扩展的基础
Java认证模考试题(十)
java基础--JAVA字符集
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛