- Which of the following are interfaces? (3 correct answers)
- Servlet
- HttpServlet
- ServletRequest
- HttpServletRequest
ANS :
a,c,d
- Which of the following are abstract classes? (2 correct answers)
- Servlet
- HttpServlet
- GenericServlet
- HttpServletRequest
ANS: b,c
- Which of the following statements is true? (1 correct answer)
- HttpServlet extends GenericServlet that implements Servlet.
- HttpServlet extends GenericServlet that extends Servlet.
- HttpServlet implements GenericServlet that extends Servlet.
ANSWER : a
- Which of the following statements are true? (2 correct answers)
- HttpServlet IS-A GenericServlet.
- HttpServlet IS-A Servlet.
- HttpServlet IS-A ServletRequest.
Answer :
a,b
- Here are some actions taken by the Container when a client request arrives. Place them in the correct order starting from what happens first.
- Calls the void service(HttpServletRequest, HttpServletResponse) method of the servlet.
- Creates a pair of request and response objects.
- Finds the correct servlet based on the URL.
- Creates a new thread or allocates an existing thread to the client’s request.
Answer :
b,c,d,a
No comments:
Post a Comment
Thank you share the knowledge U have with in U.