a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 103|回复: 0

[考试试题] 2011年JAVA认证模拟题(56)

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
  Q166 Which of the following are true?# |  Z! ~& U5 V) q3 b
  A Local variables may be declared final.
# l" C' f- R6 s# n+ y1 B1 Z2 P& n8 q  B Methods may be declared final.
# d/ a* Y2 Z" s% V- f: z  C Constructors may not be declared private.
& ?; S: n+ [7 R' {* \" ^  D transient variables may not be serialized.7 V/ r2 P6 E- b
  Q167 When the clipping region is set for a Graphics object, which of the following are true?
5 ?/ `7 a6 n7 v; F3 I) o" J9 Y2 Y9 e  A Painting is restricted to the clippping region.
* P8 [0 _* l* `' D- S$ ?  B Painting is excluded from the clipping region.
- h6 E( `, {, `3 |9 e  C All painting is prohibited.
$ ~$ ~* D2 o2 a9 H3 S. X( x  D Painting takes place inside of and outside of the clipping region.
! x( v' j$ f/ X. n; i# x; b6 |5 Z  Q168 Suppose that you want to have an object eh handle the TextEvent of a TextArea object t. How should you add eh as the event handler for t?4 I9 y- ]3 o% k
  A t.addTextListerner(eh);  X1 d! l$ D1 Z" D+ [
  B eh.addTextListerner(t);
+ e% D8 ]0 H/ v( `% ~  C addTextListener(eh,t);' s0 K# k  _3 Y: |+ P. v; [
  D addTextListener(t,eh);* \, ^. ~3 ~) l3 T# X% U4 m) D7 M! \% R
  Q166 ABD. G5 T# U1 j7 B8 S
  Q167 A
7 N, i0 p& f( {8 l  Q168 A
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-17 21:28 , Processed in 0.426738 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表