2011年JAVA认证模拟题第二阶段(17)
Q49.FlowLayout is the default layout manager for which of the following containers. Select all valid answers? a. Panelb. Applet
c. Frame
d. Dialog
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.
a. add(c)
b. c.add()
c. add(“Center”,c)
d. set(c)
Q51.Given the following code snippet
1. class A {
2. public void method(int a, float b) {
3. // some declaration and etc.
4. }
5. }
6. public class B extends A {
7. //Comment here ?
8. }
In class B what all methods can be placed in (// Comment here ?) individually ?
a. void method(int i, float a)
b. public void method(int i, float f)
c public void method()
d. protected int method(float f, int b)
49. ab
50. a
51. bcd
页:
[1]