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

多项选择题

Given:
String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains:
<context-param>
<param-name>foo</param-name>
<param-value>frodo</param-value>
</context-param>
Which two are true?()

    A.The foo initialization parameter CANNOT be set programmatically.
    B.Compilation fails because getInitParameter returns type Object.
    C.The foo initialization parameter is NOT a servlet initialization parameter.
    D.Compilation fails because ServletContext does NOT have a getInitParameter method.
    E.The foo parameter must be defined within the  element of the deployment descriptor.

点击查看答案

相关考题

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

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

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

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