单项选择题


Which command line invocation will produce the output?()

A. java Test 2222
B. java Test 1234
C. java Test 4242
D. java Test 4321


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题What is the numerical range of char?()

A. 0…32767
B. 0…65535
C. –256…255
D. 32768…32767
E. Range is platform dependent.

2.多项选择题

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))

3.多项选择题

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) {}

5.单项选择题Which retrieves all cookies sent in a given HttpSErvletRequest request?()

A. request.getCookies()
B. request.getAttributes()
C. request.getSession ().getCookies()
D. request.getSession (). GetAttributes()

6.多项选择题For a given Servlet Response response, which two retrieve an object for writing text data? ()

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)

7.单项选择题


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.

9.单项选择题


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)

10.多项选择题Which three are valid URL mappings to a servlet in a web deployment descriptor? ()

A. */*
B. /*.do
C. myServlet
D. /Myservlet
E. /MyServlet/*
F. MyServlet/*.isp

最新试题

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?()  

题型:单项选择题

Which three are guaranteed to be valid for the  element of a web application deployment descriptor?()

题型:多项选择题

Which three can be placed at line 23 to retrieve an existing HttpSession object?()

题型:多项选择题

For a given product instance, which three jsp:setProperty attributes must be used to initialized its properties form the HTML form? ()

题型:多项选择题

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 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?()  

题型:单项选择题

Which two produce the output "one, two and three"?()

题型:多项选择题

Which the JSTL code snippet can be used to import content from another web resource?()

题型:单项选择题

Within the web application deployment descriptor, which defines a valid JNDI environment entry()

题型:单项选择题