win.setLayout(new BorderLayout()); win.add(but);
win.setLayout(new GridLayout(1, 1)); win.add(but);
win.setLayout(new BorderLayout()); win.add(but, BorderLayout.CENTER);
win.add(but);
win.setLayout(new FlowLayout()); win.add(but);
第1题:
第2题:
A.
B.
C.
D.
E.
F.
第3题:
A.int foo() { /* more code here */ }
B.void foo() { /* more code here */ }
C.public void foo() { /* more code here */ }
D.private void foo() { /* more code here */ }
E.protected void foo() { /* more code here */ }
第4题:
If a vessel subject to PSC inspection, PSC Officer shall give the inspection to the Captain, the given timeframe for rectification of each deficiency is commonly given in a coded form which called “action code”, which code listed below is used for indication of detention of the vessel?()
第5题:
Given: 3.public class MyTagHandler extends TagSupport { 4.public int doStartTag() { 5.// insert code here 6.// return an int 7.} 8.// more code here ... 18.} There is a single attribute foo in the session scope. Which three code fragments,inserted independently atline 5,return the value of the attribute?()
第6题:
A.The application will crash.
B.The code on line 29 will be executed.
C.The code on line 5 of class A will execute.
D.The code on line 5 of class B will execute.
E.The exception will be propagated back to line 27.
第7题:
In HDLC Protocol, when Supervisory Frame's type code is '00'.About the following statements, which is correct.
A.Receive Ready
B.Receive not Ready
C.Reject
D.Selective Reject
第8题:
A.java.lang.StackOverflowError
B.java.lang.IllegalStateException
C.java.lang.ExceptionInInitializerError
D.java.lang.ArrayIndexOutOfBoundsException
第9题:
You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()
第10题:
The 8859-1 character code for the uppercase letter A is 65. Which of these code fragments declare and initialize a variable of type char with this value?()