a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 114|回复: 0

[考试试题] 2011年JAVA认证模拟题第二阶段(17)

[复制链接]
发表于 2012-8-4 12:33:16 | 显示全部楼层 |阅读模式
  Q49.FlowLayout is the default layout manager for which of the following containers. Select all valid answers?  a. Panel7 B* O" @. s' A- I% W3 c
  b. Applet
2 _9 |9 I! x7 V: Y  c. Frame
' B7 V7 I; Y. B$ f  d. Dialog
8 M8 A) e5 h) F( y  Q50.Using a FlowLayout Manager, which of the following is the correct way to add a component reference b y the variable “c” to a container.
3 i/ K0 ?" T7 G% P4 I+ z  a. add(c)
, H: _: i1 j8 \) t# B1 M  b. c.add()
9 p4 O; ^0 Y" A  v* U+ ?* A: j  c. add(“Center”,c)8 p9 R  ~- `# E
  d. set(c)
) `# [4 @4 I; ]9 w4 G# R  Q51.Given the following code snippet
4 A9 i$ S  z' r3 P! T  1. class A {
- C2 u% |  p. J" S. p  2. public void method(int a, float b) {
. b/ W0 _+ U0 X+ y, O; w  3. // some declaration and etc.
0 J' s4 e) ~* q: e: z2 t2 |  4. }
. @4 p: Y3 E  k5 J  5. }
2 R4 e1 j) n% A4 O: I) u# s  6. public class B extends A {
! n. h  W5 W1 l8 m" Y, k" e( i  7. //Comment here ?! J& N  |) \' x, ?* G2 B# }/ Y5 R8 E
  8. }
5 J- \5 |+ N$ S% h" e% Q  In class B what all methods can be placed in (// Comment here ?) individually ?
* T8 Z! Q' x$ X$ v; p  a. void method(int i, float a)
9 \2 z( o$ w2 k5 o/ n5 ~' M4 d  b. public void method(int i, float f)
, ~1 u8 m4 z8 I& i  c public void method()
" G' f! W/ z& J' ?  d. protected int method(float f, int b)
" m) G3 z, A$ i& Z; ^* ?, b  49. ab
+ U. z  V. Z6 q! e% ^8 a  S. q& j, H  50. a6 T% b1 m7 v' D. N
  51. bcd
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-21 17:47 , Processed in 0.175644 second(s), 21 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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