This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Which of the following statements are true?
Choose at least one answer.
A. Every (non distributed) web application has only one instance of ServletContext
B. Every instance of HttpServlet has only one instance of ServletContext
C. The ServletContext object is retrieved via the getServletContext method of ServletConfig
D. The ServletConfig object is retrieved via the getServletConfig method of ServletContext
Why is option B incorrect here? Every instance of servlet class will have one servlet context associated with it. it can't have multiple instances of servlet context. how is this incorrect?