Most Commonly asked Servlet Interview Questions during the campus interviews. There is a list of 25 interview questions related to Servlet API.
- what is Servlet?
- Life cycle methods of servlet?
- Difference b/w web server and application server?
- Working of Servlet Container?
- what is ServletConfig Object?
- There can be more than one ServletConfig object for any Servlet or not?
- difference between ServletContext and ServletConfig?
- why we do not create Constructor for the Servlet?
- Is it possible to override init() method of HttpServlet? why?
- Difference Between init() and init(ServletConfig) methods of genericServlet?
- Difference between genericServlet and HttpServlet?
- What is Request Dispatcher in Servlet?
- Difference between include() and forward() methods in Servlet?
- Difference b/w sendRedirect and Request Dispatcher?
- How do we go with database connection and log4j integration in servlet?
- Is it needed to override service method every time?
- Explain Servlet Thread Safe?
- What is Servlet chaining?
- What are the Servlet attributes and their scope?
- what is session management in Servlet?
- How to make sure a servlet is loaded at the application startup?
- Different methods of session management?
- Explain Cookies in Servlet? and how it works?
- What is Deployment Descriptor?
- What are different ways for servlet authentication?
- How can we achieve transport layer security for our web application?
- Explain Listeners in Servlet?
- why we use Filters in Servlet ? what is filter chaining?
- URL Rewriting in Servlet?
- what is load-on-startup process?
-
- How to get the server information in a servlet?
- What are different ways for servlet authentication?
- What is Development descriptor?
- Explain Servlet life Cycle?
- Why do we have servlet listeners?
- What are important features of Servlet 3?
- How to handle exceptions thrown by application with another servlet?
- What is a deployment descriptor?
Thank you visitor…! 🙂 www.ease2code.com
Speak Your Mind