A. response.set Header (“X-MyHeader”. “34”):
B. response.addHeader (“X-MyHeader”. “34”):
C. response. Set Header (new Http Header (“X-MyHeader”. “34”)):
D. response.addHeader(new Http Header (“X-MyHeader”. “34”)):
E. response. addHeader (new Servlet Header (“X-MyHeader”. “34”)):
F. response. setHeader (new Servlet Header (“X-MyHeader”, “34”)):
您可能感兴趣的试卷
你可能感兴趣的试题
A. The servlet’s init method returns a non-zero status.
B. The servlet’s init method throws a Servlet Exception
C. The servlet’s init method sets the Servlet Response’s context length to 0
D. The servlet’s init method sets the Servlet Response’s content type to null.
E. The servlet’s init method does NOT return within a time period defined by the servlet container.
Given the Tag:
Assuming the tag referenced by my Tags: get Advice uses the Classic event model,
which is true?()
A. The do After Body method is called.
B. The doEnd Tag method is NOT called.
C. The type attribute may be specified in the TLD
D. The do Start Tag Method must always return SKIP_BODY.
E. The TLD for this tag must NOT include a
What is the result()?
A. The program runs and prints “ I = 1 , j = 0”
B. The program runs and prints “ I = 1 , j = 4”
C. The program runs and prints “ I = 3 , j = 4”
D. The program runs and prints “ I = 3 , j = 0”
E. An error at line 4 cause compilation to fail.
F. An error at line 7 cause compilation to fail.
What is the result?()
A. An exception is thrown.
B. The code does not compile.
C. “Hello worlds.” Is printed to the terminal.
D. The program exits without printing anything.
A. public double methoda ():
B. static void methoda(double d1) {}
C. public native double methoda ():
D. abstract public foid methoda ():
E. protected void methoda (double d1) {}
What is the result?()
A. The code compiles and “s=” is printed.
B. The code compiles and “s=” + s);
C. The code does not compile because Strings is not initialized.
D. The code does not compile because Strings cannot be referneed.
E. The code comiles, but a NullPointer Exception is thrown when toString is called.
A. run
B. import
C. default
D. implement
What is the result?()
A. foo has the value of “”
B. foo hast he falue of null.
C. foo has the value of “blue”
D. foo has the value of “green”
E. An exception is thrown.
F. The code will not compile.
What the output?()
What is the result?()
A. The program runs and prints nothing.
B. The program runs and prints “Equal”.
C. An error at line 5 cause compilation to fail.
D. The program runs but aborts with an exception.
最新试题
Which two authentication mechanisms provide weaker protection than other mechanisms?()
Which the three are true about servlet filters?()
Given that session is a valid HttpSession object: Int max = session.getAttribute(“MyReallyLongName”); Which is true?()
Which two are true?()
Which three can be placed at line 23 to retrieve an existing HttpSession object?()
Which the JSTL code snippet can be used to import content from another web resource?()
Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()
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 is the true choice about the web container request processing model()?
Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()