可学答题网 > 问答 > SCWCD(310-083)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given: String value = 


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?()

  • AThe foo initialization parameter CANNOT be set programmatically.
  • BCompilation fails because getInitParameter returns type Object.
  • CThe foo initialization parameter is NOT a servlet initialization parameter.
  • DCompilation fails because ServletContext does NOT have a getInitParameter method.
  • EThe foo parameter must be defined within the  element of the deployment descriptor.
参考答案
参考解析:
分类:SCWCD(310-083)题库