Here is the list of Top 11 Java Servlet interview questions for Freshers and Experienced asked in real time interviews for java servlet and tricky servlet interview questions.
Java Servlet interview questions
How to create a servlet?
What are servlets?
What are the life cycle methods of a Servlet?
What are the common mechanisms used for session tracking?
What is the difference between HttpServlet and GenericServlet?
What is the difference between ServletContext and ServletConfig?
What is session?
What is servlet mapping?
Can we use the constructor, instead of init(), to initialize servlet?
Can we write a constructor for servlet ?
What are the parameters for service method?