What is the life cycle of Servlet?

Answer Posted / madan mohan

Servlets are server side components used to develop server
side applications.. servlet acts as a controller between
two or more pages...if any changes made in web.xml, we need
to redeploy the application

where as Jsp are java server pages which is combination of
html and jsp tags, directly run at explorer page, no need
to compile

both having similar life cycles like init(), doPOst() or
doGet() and destroy()...

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create object of static class?

522


What are the java ide’s?

570


What are java threads?

612


What is string in java?

551


Why we override equals() method?

559






What is a percentage sign called?

613


What is the static method?

563


What is a boolean expression in java?

527


What are the two main uses of volatile in Java?

595


What are basic data types?

554


Is null a value?

554


what do you mean by marker interface in java?

541


What is the syntax and characteristics of a lambda expression? Explain

535


Why is it called boolean?

516


What are the advantages of inner classes?

501