多项选择题


Which two are void examples of method overriding? ()

A. void setVar(float f) { x = f;}
B. public void setVar(int f) { x =f;}
C. public void setVar(float f) {return f;}
D. public double setVar(float f) {return f;}
E. protected float setVar() { x = 3.0f; return 3.0f; }


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题


Which statement at line 7 constructs an instance of the inner class?()

A. InsideOne ei = eo.new InsideOne():
B. eo.InsideOne ei= co.new InsideOne():
C. InsideOne ei = EnclosingOne.new InsideOne():
D. EnclosingOne.insideOne ei = eo.new InsideOne():

2.多项选择题Which two are characteristics of the Intercepting Filter pattern?()

A. it provides centralized request handling for incoming requests.
B. It forces resource authentication to be distributed across web components.
C. It reduces coupling between presentation-tier clients and underlying business services.
D. It can be added and removed unobtrusively, without requiring changes to existing  code.
E. It allows preprocessing and postprocessing on the incoming requests and outgoing  responses.

3.单项选择题A developer wants too use EL to invoke a function using S{my:bloof(“foof”)}. Which is always true?()

A. The method invoked by this function must be statie.
B. The function class must implement the Function interface.
C. The expression is NOT a valid EL expression for invoking a function.
D. The function must be declared in a web.xml file using the  element.
E. The function class must have a method with the signature:Void bloof (java.lang.Strings)

4.多项选择题Which two HTTP methods are used to process from data in a servlet? ()

A. do GET
B. do Put
C. do Post
D. do Trace
E. do Submit
F. do Process

5.多项选择题For an HttpServlet Response response, which two create a custom header()

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

6.多项选择题Which two prevent a servlet from handling requests.?()

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.

7.单项选择题

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  tag.

8.单项选择题


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.

9.单项选择题


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.

10.单项选择题Which will declare the method that forces a subclass to implement it?()

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

最新试题

Which the two are valid and equivalent?()

题型:多项选择题

When using Form Based Authentication, which pair of fields must be used in the login form?()  

题型:单项选择题

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

题型:多项选择题

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 two classes or interfaces provide a getSession method?()

题型:多项选择题

Which is the true choice about the web container request processing model()?

题型:单项选择题

Which two authentication mechanisms provide weaker protection than other mechanisms?()

题型:多项选择题

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

题型:多项选择题

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

题型:多项选择题

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

题型:单项选择题