单项选择题


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.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

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.

2.单项选择题


What is the decimal value of J at line 5?()

A. 0
B. 1
C. 14
D. –15
E. An error at line 3 cause compilation to fail.
F. An error at line 4 cause compilation to fail.

3.单项选择题


What is the final value of i?()

A. 1
B. 2
C. 3
D. 4
E. 5

5.单项选择题


What is the result?()

A. Compilation succeeds and 1 is printed.
B. complication succeeds and 2 is printed.
C. An error at line 8 causes compilation to fail.
D. An error at line 13 causes complication to fail.
E. An error at line 14 causes compilation to fail.

6.多项选择题


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; }

7.单项选择题


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

8.多项选择题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.

9.单项选择题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)

10.多项选择题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

最新试题

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

题型:单项选择题

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

题型:单项选择题

Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()

题型:单项选择题

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

题型:多项选择题

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

题型:单项选择题

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

题型:多项选择题

Which two are true?()

题型:多项选择题

Which the two are characteristics of the Service Locator pattern?()

题型:多项选择题

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 the two are true regarding a web application class loader?()

题型:多项选择题