单项选择题


Which statement. At line 16, retrieves an Input Stream for the file / WEBINF/myresrc.bin?()

A. ctx.get put Stream (“/WEB-INF/myresrc.bin”):
B. ctx.get Input Stream (“/WEB-INF/myresrc.bin”):
C. ctx.get Resource As Stream (“/WEB-INF/myresrc.bin”):
D. new Input Stream (new Url (“/WEB-INF/myresrc.bin”):
E. Get Class (). Get Resource As Stream (“/WEB-INF/myresrc.bin”):


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题


Which two are true about the tag handler referneed by my Tag. ()

A. The do Start Tag method is called once.
B. The do After Body method is NOT called.
C. The EVAL_Page constant is a valid return value for the do End Tag Method.
D. the EVAL_BODY_BUFFERED constant is a valid return value for the do Start Tag method.

2.单项选择题


What is the result?()

A. The output is X = 6 y = 0
B. The output is x = 7 y = 0
C. The output is x = 6 y = -1
D. The output is x = 7 y = -1
E. Compilation will fail.

3.单项选择题


What is the result?()

A. the program runs and prints nothing.
B. The program runs and prints “Finally”.
C. The code compiles. But an exception is thrown at runtime.
D. the code will not compile because the catch block is missing.

4.多项选择题Which four types of object can be thrown using the throw statement?()

A. Error
B. Event
C. Object
D. Exception
E. Throwable
F. Runtime Exception

5.单项选择题


What is the result?()

A. Compilation will succeed.
B. Compilation will fail at line 5.
C. Compilation will fail at line 6.
D. Compilation will fail at line 14.
E. Compilation will fail at line 176.

6.单项选择题


Which statement at Point X on line 1 allows this code to compile and run?()

A.import java.io.PrintWtier;
B.include java.io.PrintWRiter;
C.import java.io.OutputStream Writer;
D.include java.io.OutputStream Writer;
E.No statement is needed.

7.单项选择题


What is the Result?()

A. baz has the value of “”.
B. baz has the value of null.
C. baz has the value of “red”
D. baz has the value of “blue”
E. baz has the value of “green”
F. The code does not compile.
G. the program throws an exception.

8.单项选择题


What is the value of b bat line 5()?

A. -1
B. 225
C. 127
D. Compilation will fail.
E. Compilation will succeed but the program will throw an exception at line 4.

9.单项选择题


What is the result?()

A. baz has a value of 0.
B. baz has a value of 1.
C. baz has the value of 2.
D. An exception is thrown.
E. The code will not compile.

10.单项选择题


Which statement is true()?

A. Compilation succeed and d take the value 253.
B. Line 5 contains an error that prevents compilation.
C. Line 5 throws an exception indicating “out of range”
D. Line 3 and 4 contain errors that prevent compilation.
E. The compilation succeed and d takes the value of 1.

最新试题

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

题型:单项选择题

Which the three are true about servlet filters?()

题型:多项选择题

A developer is designing a web application which extensively uses EJBs and JMS. The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides a solution for this problem?()

题型:单项选择题

Which the three EL expressions, inserted at line 15, are valid and evaluate to "3"? ()

题型:多项选择题

Which the two are valid and equivalent?()

题型:多项选择题

Which code snippet, inserted at line 8, causes the value Company to be output?()

题型:单项选择题

What else must the developer do to ensure that the intended security goal is achieved()?  

题型:单项选择题

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

题型:多项选择题

Which statement, at line 16, retrieves an InputStream for the file /WEBINF/ nyresrc.bin()?

题型:单项选择题

Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()

题型:多项选择题