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 are the uses of servlet

836


How servlet is created?

788


What is the difference between encodeRedirectUrl and encodeURL?

847


Why do we use sendredirect() method?

752


When servlet is loaded?

807


What is the need of session tracking in web application?

791


What is pure servlet?

929


Explain the difference between generic servlet and http servlet?

743


What is preinitialization of a servlet?

784


How to make sure a servlet is loaded at the application startup?

773


What must be implemented by all servlets?

810


What is the process for chaining servlet?

797


What is httpservlet class?

766


Which java application server is the best?

780


Which event is fired at the time of setting, getting or removing attribute from application scope?

887