a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 63|回复: 0

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

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
 Q67 Which statement is true about a non-static inner class?   A It must implement an interface.
* z5 a: Z, y# `, e9 S  B It is accessible from any other class." d) v6 I+ K" s1 [( Q
  C it can only be instantiated in the enclosing class.
5 |& f" [; {, ]8 n4 J2 q0 p  D it must be final, if it is declared in a method scope.# A0 T# D& K2 k! n0 Y+ F
  E it can access private instance variables in the enclosing object.( P' f6 J2 O  T
  Q68 Which of the following are true?2 A7 D* R5 u' y* x! q9 z. Z% ~
  A Event listeners are interfaces that define the methods that event-handling classes must implement.
" k& F& h) N/ @6 C" o1 m$ x. C+ r  B An event adapter is a class that provides a default implementation of an event listener.! \3 c: s% V) m8 ^% T6 D
  C The event listener and adapter classes are deprecated in java 2.
" Q; m; N' w. c# A  D The WindowAdapter class is used to handle window-related events.0 d9 ^  T4 L4 F8 [) O) y
  Q69 What is the range of the short type?
1 I3 A. d! r. Q& k  A 0 to 2^16
  ^. Q* q/ e' R1 _0 l, U  B -(2^16) to 2^16! W5 Q  q! M2 @1 ^. ]( Q6 L
  C -(2^15) to 2^15
- A( e) v7 B7 O( j$ U  D –(2^15) to 2^15 –16 N/ Y5 J  c% @
  Q067 E, g9 S" b* |3 k3 x$ d9 w1 D
  Q068 ABD
7 ]; u3 X4 G! T5 @- }  Q069 D
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 03:36 , Processed in 0.230389 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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