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
正确答案:A
答案解析:有

微信扫一扫手机做题