移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

计算机考试 | Java认证考试

题库
练习
考试
资讯

模式切换

0 0 0
我的错题 我的收藏 学习笔记

章节目录

单选题 What is the result?()

A

 The program runs and prints “0”

B

 The program runs and prints “1”

C

 The program runs but aborts with an exception.

D

 An error “possible undefined variable” at line 4 causes compilation to fail.

E

 An error “possible undefined variable” at line 9 cause compilation to fail.

多选题 Which three are described in the standard web application deployment descriptor?()  

A

 session configuration

B

 MIME type mappings

C

 context root for the application

D

 servlet instance pool configuration

E

 web container default port bindings

F

 ServletContext initialization parameters

单选题 Which will declare a method that is available to all members of the same package and be referenced without an instance of the class?()

A

 abstract public void methoda ();

B

 public abstract double inethoda ();

C

 static void methoda (double dl) {}

D

 public native double methoda () {}

E

 protected void methoda (double dl) {}

多选题 A Company.com developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner.  Which two can support this design goal?()

A

 Store the data in a local variable.

B

 Store the data in an instance variable.

C

 Store the data in the HttpSession object.

D

 Store the data in the ServletContext object.

E

 Store the data in the ServletRequest object.

多选题 Which two successfully translate and result in a value of true?()

A

 ${true or false}

B

 ${requestScope[foo][0] > 500}

C

 ${requestScope[“foo”][1] = 420}

D

 ${(requestScope[“foo”][0] lt 50) && (3 gt 2)

单选题 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.

多选题 For a given Servlet Response response, which retrieves an object for writing binary data? ()

A

 response.get writer ()

B

 response.get Output Stream ()

C

 response.getOutput Writer()

D

 response.get Writer ().get Output Stream ()

E

 response.get Writer (Writer.OUTPUT_BINARY)

首页 上一页 1 2 3 4 5 下一页 尾页 /

到第