a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 112|回复: 1

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

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
 Q13 Which of the following is the highest class in the event delegation class hierachy?   A java.util.EventListener9 z6 q2 E  Z- U/ N# u
  B java.util.EventObject5 Q. C7 c( T7 m  |
  C java.awt.AWTEvent  U8 c, V7 p) u+ T
  D java.awt.event.AWTEvent, K  }; a) v+ h
  Q14 If you ran the following program, what lines would be included in its output?
0 m9 P( F: E. x6 y' p# Y9 w/ o! n  Class Question {
' G/ @% @2 T) g7 w  public static void main(String[] args); V* T  S- M% q, ^$ q
  {
9 x% M' z/ |* p/ I) v  int i, j;6 Q% Y3 k/ I/ U1 T# a8 y
5 A& e/ X. y$ `* d- h$ J
  for(i=0, j=0; i+j
回复

使用道具 举报

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

2011年JAVA认证模拟题(5)

</p>  }
& Z" |& r. ]2 A# Q1 m  }
0 L1 W6 x8 T/ B2 I" Y1 U  }: Z7 I2 G9 O8 X& U
  A 5
6 F2 j' H& X. q0 K9 A4 M  B 8
* Y3 I- q  i( p. @5 ?  C 13+ \& c, J6 N/ }
  D The program cannot be compiled because the for statement’s syntax is incorrect.! ]+ b. I- _9 \& R
  Q15 Which of the following are true?
  |- x& |. u9 _  [. I  A A top-level class may be declared as private.
$ ~5 l8 {( a% ^4 e! B6 k  B A method may be declared as transient.9 g; ]1 f0 _% Y, v5 ~8 U
  C A constructor may be declared as volatile.6 W1 I& r5 ^. r( S, c  ^4 u5 K
  D A local variable may be declared as final.
$ k  ^& M: T! o' \  Q013 B
1 e4 y( M5 X& @6 }0 o- t6 s  Q014 A
. t0 O1 L' t& C  Q015 D
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-26 06:39 , Processed in 0.525283 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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