相关考题
-
多项选择题
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”). -
多项选择题
GivenaheaderinanHTTPrequest:X-Retries:4WhichtworetrievethevalueoftheheaderfromagivenServletRequestrequest?()
A. request.getHeader (“X-Retries”)
B. request.getIntHeader (“X-Retries”)
C. request.getRequestHeader (“x-Retries”)
D. request.getHeaders (“X-Retries”).get (0)
E. re request.getRequest Headers (“X-Retries”). Get (0)
