a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 59|回复: 0

[考试试题] JAVA认证历年真题:310-025精选题(21)

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
65. What should you use to position a component within an application frame so that the components height is affected by the Framesize?1 p/ m6 v0 M: C6 x2 f. l  H( T- e
A. FlowLayout
$ C; B) w0 N7 N+ [6 T. ~  C! fB. GridLayout
6 I2 [  z! |+ [0 e: B3 @C. Center area of a BorderLayout7 q, B/ @. n( L, x( q
D. East or West of a BorderLayout
0 f( l0 ?, ]# S% e. ?( }* CE. North or South of a BorderLayout
  H1 ^7 Z# {& U8 ], `D.: `( I4 R+ X: d- m' O0 G# f- s
66. What should you use to position a component within an application frame so that the components width is affected by the Framesize?5 K+ l& @3 F' \; S7 \
A. FlowLayout
$ [% F% v2 X0 p% u/ n# nB. GridLayout
+ I4 H: T- _: E) A- t8 X# qC. Center area of a BorderLayout; ~" @' k; z+ P1 W
D. East or West of a BorderLayout, h, h* v3 }# x2 a
E. North or South of a BorderLayout
. a$ |5 \! Y/ p6 [$ y2 hE.
5 S& k! ]0 \3 W; `$ ~+ l67. What should you use to position a Button within an application frame so that the height of the Button is affected by the Frame size but the width is not affected.
4 z8 L' W# m7 F+ V, KA. FlowLayout
) }% L4 `9 J6 N6 XB. GridLayout
7 v, Q. \9 b: i: @, ^2 oC. Center area of a BorderLayout
* s& y5 m% M) h3 Z% BD. East or West of a BorderLayout
! R* L% `! B4 U  X- b' }7 i1 g4 jE. North or South of a BorderLayout; t) n6 I# w/ n  v9 ~) ~
D.* ?& I# Z; Y4 U4 |* p3 O
68. Which are keywords in Java?) Z+ {. m7 Z: K
+ m$ U# D% |2 o8 h- a8 e
A.NULL
3 B) U7 O9 H9 {B.sizeof
( P" B( c5 L$ G, v+ FC.friend( k5 G6 ~3 ?1 p# D
D.extends2 }- O1 y  n+ B% H6 k  m$ a
E.synchronized
0 e2 t; @; ^- `: }# ]* b% xDE.9 r  Z6 Z- p1 o$ }
69. Which is the advantage of encapsulation?* V! h" A' c( x/ A6 a/ }5 }
A. Only public methods are needed.
* s' F2 Y' @" n/ v0 `; E+ y+ EB. No exceptions need to be thrown from any method.& @2 n- h/ I' x
C. Making the class final causes no consequential changes to other code.  |- _  I/ Y* t1 y3 S
D. It changes the implementation without changing the interface and causes no consequential changes to other code.4 b7 c* s1 z& C2 l* a( h
E. It changes the interface without changing the implementation and causes no consequential changes to other code.
0 ~% c4 G2 z3 T% HD.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-2 15:27 , Processed in 0.150023 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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