移动端

  • 题王微信公众号

    题王微信公众号

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

计算机考试 | Java认证考试

题库
练习
考试
资讯

模式切换

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

章节目录

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

A

 The init method on a filter is called the first time a servlet mapped to that filter is invoked

B

 A filter defined for a servlet must always forward control to the next resource in the filter chain.

C

 Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file

D

 If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it

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

A

 new InputStream(“/WEB-INF/nyressrc.bin”);

B

 ctx.getInputStream(“/WEB-INF/nyresrc.bin”);

C

 ctx.getresourceAsStream(“/WEB-INF/nyresrc.bin”);

D

 new InputStream(“/WEB-INF/nyresrc.bin”);

E

 getClass().getResourceAsStream(“/WEB-INF/nyresrc.bin”);

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

A

 ${vals.2 }

B

 ${vals ["2"]}

C

 ${vals.index }

D

 ${vals[index]}

E

 ${vals} [index]

F

 ${vals.(vals.index)}

G

 ${vals[vals[index-1]]}

多选题 Which two classes or interfaces provide a getSession method?()

A

 javax.servlet.http.HttpServletRequest

B

 javax.servlet.http.HttpSessionContext

C

 javax.servlet.http.HttpsServletResponse

D

 javax.servlet.http.HttpSessionBindingEvent

E

 javax.servlet.http.HttpSessionAttributeEvent

单选题 Which HttpSession method stores an object in a session?()

A

 put(String name. Object value)

B

 set(String name. Object value)

C

 setAttribute(String name. Object value)

D

 putAttribute(String name. Object value)

E

 addAttribute(String name. Object value)

多选题 Which two are true? ()

A

 Tag files can only be accessed using a tagdir attribute.

B

 The sort.jsp page translates successfully and invokes the tag defined by beta.tag.

C

 The sort.jsp page produces a translation error because a taglib directive must always have a uri attribute.

D

 Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB-INF/tags.

E

 The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is created and added to the web application.

单选题 What is the result?()

A

 The code compiles and “s=” is printed.

B

 The code compiles and “s=null” is printed.

C

 The code does not compile because Strings is not initialized.

D

 The code does not compile because because Strings cannot be referneed.

E

 The code comiles.butt a NullPointerException is thrown when toString is called.

单选题 When is the Float object. Created in line 3, eligible for garbage collection?()

A

 just after line 5

B

 just after line 6

C

 just after line 7

D

 just after line 8 (that is . as the method returns)

单选题 What is the result?()  

A

 An error occurs during page translation.

B

 Translation is successful, but nothing is included in the response.

C

 Both “10 x 5 = 50” and “2 * 3 = 6” are included in the JSP response.

D

 The text “10 x 5 = 50” is included in the JSP response, but “2 * 3 = 6” is NOT.

E

 The text “2 * 3 = 6” is included in the JSP response, but “10 x 5 = 50” is NOT.

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

到第