欢迎来到计算机考试题库网 计算机题库官网
logo
全部科目 > Java认证考试 > SCWCD(310-083)

多项选择题

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");

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题