单项选择题
How does the weighty property of the GridBagConstraints objects used in grid bag layout affect the layout of the components?()
A.It affects which grid cell the components end up in.
B.It affects how the extra vertical space is distributed.
C.It affects the alignment of each component.
D.It affects whether the components completely fill their allotted display area vertically.
相关考题
-
多项选择题
Which lines of code are valid declarations of a native method when occurring within the declaration of the following class?() public class Qf575 { // insert declaration of a native method here }
A.native public void setTemperature(int kelvin);
B.private native void setTemperature(int kelvin);
C.protected int native getTemperature();
D.public abstract native void setTemperature(int kelvin);
E.native int setTemperature(int kelvin) {} -
单项选择题
What will be written to the standard output when the following program is run?() class Base { int i; Base() { add(1); } void add(int v) { i += v; } void print() { System.out.println(i); } } class Extension extends Base { Extension() { add(2); } void add(int v) { i += v*2; } } public class Qd073 { public static void main(String args[]) { bogo(new Extension()); } static void bogo(Base b) { b.add(8); b.print(); } }
A.9
B.18
C.20
D.21
E.22 -
单项选择题
WhatdoesthevaluereturnedbythemethodgetID()foundinclassjava.awt.AWTEventuniquelyidentify?()
A.The particular event instance.
B.The source of the event.
C.The set of events that were triggered by the same action.
D.The type of event.
E.The type of component from which the event originated.
