2011年JAVA认证模拟题(46)
Q136 What should you use to position a Button within an application Frame so that the size of the Button is NOT affected by the Frame size?A a FlowLayout
B a GridLayout
C the center area of a BorderLayout
D the East or West area of a BorderLayout
E the North or South area of a BorderLayout
Q137 What is the output of the following program?
class Outer {
String s = “Outer”;
public static void main (String [] args)
{
new Outer().new Inner();
}
Outer () {
System.out.print(s);
}
class Inner {
String s = “Inner”;
Inner() {
System.out.print(s);
}
}
}
A Outer
B Inner
C OuterInner
D InnerOuter
Q138 Which of the following are true?
A Any Unicode character is represented using 16 bits.
B Seven bits are needed to represent any ASCII character.
C UTF-8 characters are represented using only eight bits.
D UTF-16 characters are represented using only 16 bits.
Q136 A
Q137 C
Q138 AB
页:
[1]