Java认证模考试题(十)

文章作者 100test 发表时间 2007:03:14 17:02:42
来源 100Test.Com百考试题网


Question: 48


A Button is positioned in a Frame. Its size is not affected when the Frame is resized. Which layout manager should be used?


A. FlowLayout

B. CardLayout

C. North and South of BorderLayout

D. East and West of BorderLayout

E. GridLayout

Explanation:


The size of the components is not constrained by the FlowLayout manager. When the area is resized the size of these components is not changed.

Correct Answer: A 48 of 60

Question: 49


Which methods can get the event source in the WindowEvent?


A. getFrame()

B. getID()

C. getSource()

D. getWindow()

Explanation:


The methods getSource() and getWindow() can be used to get the event sources of the window events.

Correct Answer: C,D 49 of 60

Question: 50


Which statements of the event listener are true?


A. Multiple listeners can be attached to one component.

B. Only one listener can be attached to one component.

C. One listener can receive and process the events from multiple components.

D. One listener can receive and process the events from only one component.

Explanation:


One component can registers one or more listeners. One listener can be registered by multiple components. After being registered the listener can receive and process the events from these components.

Correct Answer: A,C 50 of 60



相关文章


java入门Java中的日期处理
Java认证模考试题(十一)
Java认证模考试题(九)
了解Java密码扩展的基础
Java认证模考试题(十)
java基础--JAVA字符集
Java认证模考试题(八)
Java认证模考试题(七)
JAVA基础:Java启动器如何查找类
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛