a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 84|回复: 0

[考试试题] 2011年JAVA认证模拟题第二阶段(20)

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
  Q58.Which interface implementations can you add as listeners for a TextField object? Select all valid answers.
9 o6 w+ s+ p/ D+ i8 B) Z" @  a. ActionListener
: A- |! Z" a' T" }  b. FocusListener
: ?! m4 t: G' l+ {  c. MouseMotionListener
: x  L4 k8 e+ v0 t, Z$ r  d. ContainerListener% n- Y$ B/ W  i
  Q59.Which statements accurately describe the following line of code?
5 S; M1 T7 Q0 n2 h# {2 B3 ^* d  String s[][] = new String[10][];; X! J" q6 H6 _7 {, C- f) J3 U9 [
  Select all valid answers.
" Z6 ~% g$ B# F+ Z- T" Y6 J6 z- Z  a. This line of code is illegal.+ [+ g; `  ]& s2 K
  b. s is a two dimensional array containing 10 rows and 10 columns." i" W( D" s- e( V: m0 H$ u% c9 b
  c. s is an array of 10 arrays.7 K3 Z. l: ~% u2 X1 Z
  d. Each element in s is set to ““.
, i! s) i. |) z& s3 Q  Q60.To force a layout manager to re-layout the components in a container, you can invoke the container method called5 t; ]7 f  z1 {. m9 r
  a. validate()4 h) v. a9 T% N1 [
  b. repaint()$ i8 i$ O" s  Z4 ~
  c. layout()
# j. @5 [0 b# d  d. update();( J# b- }1 Z% O- U  K5 x
  58. abc+ ^$ m  V4 h- \
  59. c, d# v# l: X* G- s# k, }) M! w
  60. a
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-21 20:36 , Processed in 0.197763 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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