what is a servlet? and explain its lifecycle methods?

Answer Posted / nitin singh

Servlets are java programming language classes that
dynamically process requests and construct responses.These
are programs that are executed on server side and generate
response on client side.
The life cycle methods of servlet are
init(),service() and destroy().

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is j2ee component?

716


What are the four types of J2EE modules?

773


Why java is not 100% object oriented language?

701


What is jetty in java?

683


What is caller?

744


What is java transaction api (jta)?

691


How many types of modules is defined by j2ee specification?

659


What is component contract?

702


What is event and listener in java?

593


How does j2ee application work?

704


What are the components of j2ee applications?

775


What is server in j2ee?

644


What is javaserver pages standard tag library (jstl)?

667


Is j2ee a programming language?

709


What is context root?

728