单项选择题
Which statement at Point X on line 1 allows this code to compile and run?()
A. import java.io.*.;
B. include java.io.*;
C. import java.io.PrintWriter;
D. include java.io.PrintWRiter;
E. No statement in needed.
相关考题
-
单项选择题
What is the final value of i?()
A. 1
B. 2
C. 3
D. 4
E. 5 -
多项选择题
Which two are valid examples of method overriding?()
A. float getVar() {return x:}
B. public float getVar() {return x; }
C. public double getVar() {return x; }
D. protected float getVar() {return x; }
E. public float getVar(float f) {return f;} -
多项选择题
Which two are true? ()
A. The foo initialization parameter CANNOT be set programmatically.
B. Compilation fails because getlnitParameter returns type Object.
C. The foo initialization parameter is NOT a servlet initialization parameter.
D. Compilation fails because ServletContext does NOT have a getlnitParameter method.
E. The foo parameter must de defined within theelement of the deployment descriptor.
F. The foo initialization parameter can also be retrievedusing getSErvletConfig(). GetlnitParameter (“foo”).
