2011年JAVA认证模拟题(45)
Q133 What is the output of the following program?class Question extends SuperClass {
String s = “this”;
public static void main (String[] args)
{
new Question();
}
Question() {
super.display(s);
}
void display (String s) {
System.out.println(“this: “ +s);
}
}
class SuperClass {
String s = “super”;
void display (String s) {
System.out.println(“super: “+s);
}
}
A this: this
B super: this
C this: super
C super: super
Q134 What is the value of 111&13?
A 3
B 5
C 7
D 9
Q135 Which of the following are true?
A The Checkbox class extends the RadioButton class.
B The CheckboxGroup class in used to define radio buttons.
C The RadioGroup class is used to define radio buttons.
D A Checkbox is a RadioButton that has been associated with a CheckboxGroup.
E A Checkbox is a RadioButton that has been associated with a RadioGroup.
Q133 B
Q134 C
Q135 B
页:
[1]