移动端

  • 题王微信公众号

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

计算机考试 | Java认证考试

模式切换

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

章节目录

多选题 Given: 3.public class MyTagHandler extends TagSupport { 4.public int doStartTag() { 5.// insert code here 6.// return an int 7.} 8.// more code here ... 18.} There is a single attribute foo in the session scope. Which three code fragments,inserted independently atline 5,return the value of the attribute?()

A

Object o = pageContext.getAttribute(foo);

B

Object o = pageContext.findAttribute(foo);

C

Object o = pageContext.getAttribute(foo,PageContext.SESSION_SCOPE);

D

HttpSession s = pageContext.getSession();Object o = s.getAttribute(foo);

多选题 Which two about WAR files are true?()

A

WAR files must be located in the web application library directory.

B

WAR files must contain the web application deployment descriptor.

C

WAR files must be created by using archive tools designed specifically for that purpose.

D

The web container must serve the content of any META-INF directory located in a WAR file.

E

The web container must allow access to resources in JARs in the web application library directory.

单选题 Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()

A

This deployment descriptor is NOT valid.

B

The container first looks in the register directory for beta.html.

C

The container first looks in the register directory for alpha.html.

D

The container first looks for a servlet mapping in the deployment descriptor.

1 2 3 4 5 下一页 尾页 /

到第