Google News
logo
Java Servlets - Interview Questions
What is the javax.servlet package?
The core of the Servlet API is the javax.servlet package. It includes the basic Servlet interface, which all servlets must implement in one form or another, and an abstract GenericServlet class for developing basic servlets.
 
This package comprises of the following :
 
* Classes for communicating with the host server and client (ServletRequest and ServletResponse)
* Communicating with the client (ServletInputStream and ServletOutputStream).

In situations where the underlying protocol is unknown, servlets should confine themselves to the classes within this package.
Advertisement