Given:
Integer i = new Integer (42);
Long l = new Long (42);
Double d = new Double (42.0);
Which two expression evaluate to true?()
A. (i = = l)
B. (i = = d)
C. (d = = l)
D. (i.equals(d))
E. (i.equals(i))
F. (i.equals(42))
您可能感兴趣的试卷
你可能感兴趣的试题
Given:
1. public class ConstOver {
2. public constOver(int x, int y, int z) {
3. }
4. }
Which two overload the ConstOver Constructor?()
A. ConstOver() {}
B. protected int ConstOver(){}
C. private ConstOver(int z, int y, byte x ) {}
D. public Object ConstOver(Int x, int y, int z) {}
E. pubic void ConstOver (byte x, byte y, byte z) {}
A. NULL
B. SECURE
C. INTEGRAL
D. ENCRYPTED
E. CONFIDENTIAL
A. request.getCookies()
B. request.getAttributes()
C. request.getSession ().getCookies()
D. request.getSession (). GetAttributes()
A. response.get Writer ()
B. response.get Output Stream ()
C. response.get Output Writer ()
D. response.get Writer ().get Output Stream()
E. response.get Writer (Writer.OUTPUT_TEXT)
The attribute “name” has a value of “Foo,”
What is the result if this tag handler’s tag is invoked?()
A. Foo
B. done
C. Foodone
D. An exception is thrown at runtime.
E. Compilation fails because of an error in this code.
When is the Float object. Created in line 3, eligible for garbage collection?()
A. just after line 5
B. just after line 6
C. just after line 7
D. just after line 8 (that is . as the method returns)
A. */*
B. /*.do
C. myServlet
D. /Myservlet
E. /MyServlet/*
F. MyServlet/*.isp
And command line is vacation: Java Test red green blue()
A. bas has the value of “”.
B. baz has the value of null.
C. bas has the value of “red”.
D. baz has he value of “blue”.
E. baz has the value of “green”.
F. the code does not compile.
G. The program throws and exception.
Given:
8.int index = 1:
9.Boolean [] test = new boolcan [3];
10.boolcan foo = test [index];
What is the result()?
A. foo has the value of 0.
B. foo has the value of null.
C. foo has the value of true.
D. foo has the value of false.
E. An-exception is thrown.
F. The code will not compile.
最新试题
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?()
Which the JSTL code snippet can be used to import content from another web resource?()
The tag handler for n:recurse extends SimpleTagSupport.Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?()
What code, inserted at line 21, is called prior to a session being migrated to a different JVM assuming the web application containing MyExample is deployed in a container which supports distributed applications?()
A developer for the Company.com web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?()
Within the web application deployment descriptor, which defines a valid JNDI environment entry()
Which the two are characteristics of the Service Locator pattern?()
For a given product instance, which three jsp:setProperty attributes must be used to initialized its properties form the HTML form? ()
Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()
Which two are true?()