a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 50|回复: 0

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

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
  Q133 What is the output of the following program?
4 Y9 Q8 g1 x! k/ G, S; W5 M! z, z  class Question extends SuperClass {4 R0 g: E* n) H" d' D$ s
  String s = “this”;6 O; x' q+ M! ?8 \/ v3 G5 k
  public static void main (String[] args)
. M: @; ], K1 U) w9 \  {6 b+ @0 K" [$ P* s1 w) g5 F
  new Question();- R) V1 d# @2 Y& E4 k
  }
! \: W4 K8 a. s. Y, s/ V2 ~  Question() {
3 J$ z# L7 }; x- J  super.display(s);% [% P+ z! A: H/ }
  }. q3 h$ t2 f4 J: \' ~# \
  void display (String s) {4 ]& B) R; W; r. [4 z
  System.out.println(“this: “ +s);/ V# {0 Y0 C+ O  Z
  }8 J1 |  t3 N$ i. M
  }
: `9 Q' D4 d, A8 Y  y  class SuperClass {
& \! x+ {) i# `1 a9 a) V  String s = “super”;
8 H: E: Z, _; m% v* o6 k7 j  void display (String s) {
# d) X9 |7 E! J# H* e+ ~: r  System.out.println(“super: “+s);/ C* M0 S0 s; ~$ [9 R
  }
  L1 s% G0 f1 K7 i9 ]0 n; `  }
2 T% ]5 @# z8 Q3 \) P* r' i  A this: this7 T, i! z  l7 c( n- e7 e
  B super: this# x4 h+ f, X8 Y" a- [3 i
  C this: super& j. ^  `# a1 g& ^, j6 F
  C super: super7 L" e5 F5 C6 u' V. i: Y( _
  Q134 What is the value of 111&13?8 Y6 P! t- P# i
  A 33 C7 }# r% U! [0 ?$ v3 x
  B 5
3 c% f$ v( w: F/ V# T, `8 k' ?$ c1 C  C 7! G6 E; n9 n! y
  D 9( u! h9 V5 W4 X2 W
  Q135 Which of the following are true?$ q9 P) T  ~4 i- ?. f5 g1 H6 X
  A The Checkbox class extends the RadioButton class.
# {/ r" E. c$ X0 W! c  B The CheckboxGroup class in used to define radio buttons.4 @- N- P8 w0 P7 }" V9 j
  C The RadioGroup class is used to define radio buttons./ N6 w' D2 j/ G
  D A Checkbox is a RadioButton that has been associated with a CheckboxGroup.+ l* F1 E$ t- [, T1 a9 s
  E A Checkbox is a RadioButton that has been associated with a RadioGroup.# \7 D' _) p) [* A+ x
  Q133 B5 L7 T, Q+ _! D
  Q134 C
* p( l! ]  g; X7 f) c% V. q) ]  Q135 B
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-21 16:15 , Processed in 0.164803 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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