a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 118|回复: 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.
7 \! ~/ k  k- F1 B8 r8 g  B The add() method is used to add a Component to a Container.
( w6 ]. Z7 k+ ~2 B( t1 K  C The getBorder() method returns information about a container’s insets.
( _" L$ p: J$ J2 e  D The getComponent() method is used to access a Component that is contained in
$ M- g  E7 [6 D4 ]2 e2 j  a Container.: a7 u( [6 c0 D
  Q47 What is wrong with the following statement?( w( T' Y) j* h4 E1 H
  while (x >>2) do {
$ I" Y* g; Y2 ], V) S  x *=y;
5 j( C1 k/ c+ o1 n5 P  }
回复

使用道具 举报

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

2011年JAVA认证模拟题(16)

</p>  A The loop expression is not a boolean expression.
- L/ n' f6 M. \$ e  B The do should be removed.
0 i9 C( ]; L; X7 b  C The while should be capitalized.
) j8 ]7 t5 O& d; M% E( N- X: R  D There is nothing wrong with this statement.& Y/ q/ f% D7 r% h' Y: x
  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?6 s/ Q4 F; ?+ |* p1 J
  A Map
) A8 K8 _5 o4 ?3 j/ }  B Set' @2 P$ p7 b; P$ P
  C List
* T! X3 W0 Q" b) E5 v  D Collection
5 S3 N- g. }% H/ Y  E Enumeration
3 m/ }5 j. Q) [  Q046 ABD
4 k0 ~5 f! O0 G0 [" Q% q" E  Q047 AB/ _( b4 a& |6 P+ H
  Q048 A
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 03:05 , Processed in 0.153647 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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