Java
Java
2. JDBC Fundamentals
✅ Quick Tip: Revise this sheet before your viva for a quick refresh! 🚀
What is a Servlet?
A Servlet is a Java program that runs on a web server and handles HTTP
requests & responses. It is used for dynamic web content generation.
💡 Servlet Lifecycle
1️⃣init() → Initializes the servlet (called once)
2️⃣service() → Handles requests (called multiple times)
3️⃣destroy() → Cleanup before shutting down