a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 119|回复: 1

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

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
Q46 Which are true about the Container class?   A The validate() method is used to cause a Container to be laid out and redisplayed.
. r! M; k2 x8 x7 J  r7 }6 M- c  B The add() method is used to add a Component to a Container.
* d6 C! L( `  J- o  C The getBorder() method returns information about a container’s insets.
- F+ ~8 A3 F( w* s  _  D The getComponent() method is used to access a Component that is contained in
: _! N- r/ M  j- N/ A0 ^! {4 _  a Container.$ O8 d7 m5 V' T% U- z+ h- i/ f
  Q47 What is wrong with the following statement?& G$ y2 L7 |" K; Z9 w. A5 Z
  while (x >>2) do {2 z$ K1 V8 e- z& p
  x *=y;" y' _' l: ~3 O+ c/ E
  }
回复

使用道具 举报

 楼主| 发表于 2012-8-4 12:33:17 | 显示全部楼层

2011年JAVA认证模拟题(16)

</p>  A The loop expression is not a boolean expression.- s" g7 h4 m# ]! ]/ x
  B The do should be removed.
* ]% K" p5 [  c  C The while should be capitalized.
0 H3 c+ M. A3 E& l9 I  D There is nothing wrong with this statement.
: t" i. W+ U( h3 `: |2 G9 l/ p  Q48 What can contain objects that have a uniQue key field of String type, if it is reQuired to retrieve the objects using that key field as an index?
/ c( C! w$ R5 B  A Map
4 d* R* a# ^3 _2 }. j4 C  B Set
: t2 K# w  d1 q8 \. [  C List, Z8 S7 t# `& f/ c1 d* t4 c9 m
  D Collection
* {1 L2 z& O. F5 w0 x, F- ?) r6 W  E Enumeration
2 p3 H3 |( G, q5 Y" ?3 B  Q046 ABD7 M7 ~5 H  Z, s+ S: {0 r9 Z
  Q047 AB8 ?7 @  n# }0 d# x) ?- P6 Q0 C& J
  Q048 A
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-4 13:15 , Processed in 0.219132 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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