11.Which of the following are correct statements. Select the two correct answers.
A.The getRequestDispatcher method of ServletContext class takes the full path of the
servlet, whereas the getRequestDispatcher method of HttpServletRequest class takes the path of the servlet relative to the ServletContext.
B.The include method defined in the RequestDispatcher class can be used to access one servlet from another. But it can be invoked only if no output has been sent to the server.
C.The getRequestDispatcher(
String URL) is defined in both ServletContext and HttpServletRequest method
D.The getNamedDispatcher(String) defined in HttpServletRequest class takes the name of the servlet and returns an object of RequestDispatcher class.
I feel the answer is c&d but the answers are a&c.Can anyone explain?