AIM: Develop Simple Servlet Question Answer Application to demonstrate use of HttpServletRequest and HttpServletResponse interfaces.
Description:
In the below example create a web page to demonstrate online exam.The program in which user select the answer for the question and the result for that test display on the another web page using Servlets
Servlet is a Java class which extends the capabilities of server that provides the application accessed by means of request response model.It uses two interfaces i.e. HTTPRequest & HTTPResponse
HTTPRequest: This is an interface which provides methods for extracting HTTP parameters from the query or request body depending on the type of request i.e. get or post
HTTPResponse: This interface provides an OutputStream for retrieving information such as images or PrintWriter for retrieving text output.
Program