A. abstract public void methoda ();
B. public abstract double inethoda ();
C. static void methoda (double dl) {}
D. public native double methoda () {}
E. protected void methoda (double dl) {}
您可能感兴趣的试卷
你可能感兴趣的试题
A. float foo = -1;
B. float foo = 1.0;
C. float foo = 42el:
D. float foo = 2.02f:
E. float foo = 3.03d:
A. Member data have no access modifiers.
B. Member data can be modified directly.
C. The access modifier for methods is protected.
D. The access modifier to member data is private.
E. Methods provide for access and modification of data.
What OrderSErvlet method is invoked as a result of this from submission?()
A. doGET
B. doPUT
C. doPost
D. doTrace
E. doSubmit
After execution. What are the values for i and j ()
A. i = 6 and j = 5
B. i = 5 and j = 5
C. i = 6 and j = 4
D. i = 6and j = 6
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 the
F. The foo initialization parameter can also be retrievedusing getSErvletConfig(). GetlnitParameter (“foo”).
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)
After execution. What are the values for I and j?()
A. i = 6 and j = 5
B. i = 5 and j = 5
C. i = 6 and j = 4
D. i = 5 and j = 6
E. i = 6 and j = 6
最新试题
Which the two are true regarding a web application class loader?()
Which the two are characteristics of the Service Locator pattern?()
Which two are true()
Assume session is an HttpSession, and is not referenced anywhere else in ServletA. Which two changes, taken together, ensure that value is equal to “Hello” on line 23? ()
A web application uses the HttpSession mechanism to determine if a user is “logged in”. When a user supplies a valid user name and password, an HttpSession is created for that user. The user has access to the application for only 15 minutes after logging in. The code must determine how long the user has been logged in, and if this time is greater than 15 minutes, must destroy the HttpSession. Which method in HttpSession is used to accomplish this?()
A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed. Which two are true? ()
Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()
Which statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?
Which the three are true about servlet filters?()
Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()