a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 139|回复: 1

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

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
Q16 Which of the following are true?   A The AWT automatically causes a window to be repainted when a portion of a window has been minimized and then maximized.
4 o9 L6 ?4 r1 r& m# Y  B The AWT automatically causes a window to be repainted when a portion of a window has been covered and then uncovered.
$ g- t: M) V$ A+ I, d  C The AWT automatically causes a window to be repainted when an element of the window has been changed.
+ d7 Q: ^  \! r2 W% H; k7 y% a( a  D The AWT doesn’t automatically repaint window.0 D) C/ R0 C0 a7 m
  Q17 Which statement (exactly one)is true about the following program?6 G0 `7 a* p, A4 b
  class Question {0 `) y/ i( y9 ]" F' j  x$ {% @
  public static void main(String[] args)0 |1 `+ j3 U$ L
  {
$ R$ j( Z4 e7 y! r# q  double d1 = 1.0;" S" }- A) T& R* O+ ]2 {
  double d2 = 0.0;
0 Z+ k& R6 U4 w+ D$ H4 L  byte b =1;
& M' p1 A. B% T4 @# i; j  d1 = d1/d2;
回复

使用道具 举报

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

2011年JAVA认证模拟题(6)

</p>  b = (byte) d1;1 f' S! ]' @  e  s5 g
  System.out.print(b);& J9 ]2 r3 L$ o% I( E
  }
( H$ j' @* Y8 V% \. j) Z  }2 Z6 b, S! Z( t9 W$ T
  A It results in the throwing of an ArithmeticExcepiton.: l! B+ y0 ]. F6 k
  B It results in the throwing of a DivedeByZeroException.
$ J2 M6 Q- W9 S  X  C It displays the value 1.5./ C# H6 ^6 e; L1 g3 M
  D It displays the value –1.
" z  `6 x- H- P6 Z1 Q: W& }  Q18 Which of the following must be true of the object thrown by a throw statement?
! u: z4 e8 J9 e! E  A It must be assignable to the Throwable type.
, }  t: i$ Q/ G; H6 [# ?  B It must b e assignable to the Error type.' [6 N4 U4 H1 U" w5 L$ I! a7 L
  C It must be assignable to the Exception type.2 ^2 x" J. v) d' T( z  q& q1 u/ H
  D It must be assignable to the String type.# n8 D  i8 }. j
  Q016 AB
" L2 ]8 I2 K! ~* q  Q017 D) x: q8 r  K. K9 V$ T" X( B
  Q018 A
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-4 11:14 , Processed in 0.236742 second(s), 24 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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