Assignment 3 AJP
Assignment 3 AJP
Date:
CO3: Develop Web Applications using Servlets and deploy in popular servers like
Tomcat.
1. Explain the life cycle phases of a servlet. Describe each of the servlet life cycle
methods and their purposes.
2. Give difference between Servlet and CGI.
3. What is the Java Servlet Development Kit (SDK), and how does it relate to
servlet development? Explain its role in the servlet development process.
4. List out the ways we can develop a servlet. differentiate Servlet Vs
GenericServlet Vs HttpServlet in Java.
5. List Various tags used in WEB.XML file in Servlet.
6. Provide a step-by-step guide on how to create and compile a simple servlet
source code in Tomcat server.
7. What is HTTP/Servlet Technology? Describe HTTPServlet class with its
methods with suitable Example.
8. What is Difference between doGet () and doPost () Methods?
9. Explain Session tracking in Servlet.
10. Explore the javax.servlet package in Java. What is its significance in servlet
development, and what classes and interfaces are commonly used from this
package?
11. Write a program using servlets to reading database and displaying them.