what is servlet and what you get when we use servlets?

Answer Posted / nag sekhar(mca)

Servlet is an object which provides the implementation of
servlet interface directly or indirectly.
For example servlet program can be written by implementing
the servlet interface or by using HttpServlet class like
"public class ServletExample extends HttpServlet". The class
HttpServlet implements the Servlet interface which is
indirect implementation of Servlet.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between encodeRedirectUrl and encodeURL?

685


Why doesn’t a servlet include main()?

645


Does servlet have main method?

774


What is servlet collaboration?

748


What is cookies in servlet with example?

601






What is Request Dispatcher?

917


What do you mean by cgi?

605


Why is init() method is used in servlets?

621


Define the servlet mapping.

620


How can you create a session in servlet?

677


What is the GenericServlet class?

714


why we should override only no-agrs init() method.

743


Why jsp is better than servlet?

615


What are the servlet events?

687


Which HTTP method is non-idempotent?

710