单选题Given the HttpServlet code:   getServletContext().setAttribute(“foo”, “value”); What is the result?()AThe attribute foo is placed in the applicationBA ServletContextListener registered for that servlet is notifiedCA ServletAttributeListener registered 

题目
单选题
Given the HttpServlet code:   getServletContext().setAttribute(“foo”, “value”); What is the result?()
A

 The attribute foo is placed in the application

B

 A ServletContextListener registered for that servlet is notified

C

 A ServletAttributeListener registered for that servlet is notified

D

 An HttpSessionAttributeListener registered for that servlet is notified


相似考题
参考答案和解析
正确答案: B
解析: 暂无解析