java认证试题:2011年JAVA认证模拟题(32)
# P! q0 ? N0 Z: C+ @ Q94 Which method is used to set the layout of a container?
& \" Z# J# l; ?, g A startLayout()% J2 K7 p u0 k5 z$ t
B initLayout()
6 p/ y: Y5 y* S1 d8 ^& i2 A C layoutContainer()
* Z! N n% p; @1 b5 t' ~6 c D setLayout()9 ~8 o# X+ v" b
Q95 Which of the following are true about this variable declaration?
5 n8 B) d0 q) ]. _" i) y private static int i = 3;) z0 `; Q" M1 D2 I
A The value of i may not be changed after it is assigned a value.! Y6 w! }* J _! n4 m4 U7 u
B i may only be updated by a static method.
: Q4 _0 x, O" p# d0 {8 N2 O C The value of i is shared among all instances of the class in which it is declared.# j6 j& n1 `& t3 w, e$ ^# M
D i may only be accessed within the class in which it is declared.
" v6 P4 ~: N" ]3 f Q96 Which of the following classes is used to perform basic console IO? T" e. n3 @& j& v* A) Q
A System
' S( p F3 G: S B SecurityManager
, l8 v: L9 f$ I8 ?$ A8 Q C Math
& J+ D) g: X' }: \$ R D Runtime
: } x: `: H) D4 | Q094 D. [; `: t" s3 ?
Q095 CD. O( w8 w" ^& E- `% v
Q096 A |