Servlets Interview Questions
Questions Answers Views Company eMail

Write a hello world program using servlets.

783

How do you configure a centralized error handler in servlets?

754

Why doesn’t a servlet include main()? How does it work?

862

How printwriter is different from servletoutputstream?

770

Can a jsp be called using a servlet?

782

Can you create a deadlock condition on a servlet?

786

How can we refresh automatically when new data is entered into the database?

818

What are the different methods involved in the process of session management in servlets?

897

What do you mean by httpservlet?

751

How httpservlet is different from the genericservlet?

784

Why do we need servlet filter?

769

What are its drawbacks of cgi?

777

Explain jsessionid and when is it created?

789

Why is init() method is used in servlets?

726

What is the workflow of a servlet?

892


Post New Servlets Questions

Un-Answered Questions { Servlets }

List the Different types of servlet?

781


Why doesn’t a servlet include main()? How does it work?

862


Explain Action Servlet?

819


What if you need to span your transaction across multiple servlet invocations?

800


What’s the use of the servlet wrapper classes??

836


What is http servlet?

789


Why the container loads server at the application startup and how?

786


What is the advantage of Servlets when compared with other server side technologies?

2074


What is the servletconfig object?

743


What are the life cycle methods of the servlet?

809


What is servlet attributes and their scope?

782


How does Cookies work in Servlets?

879


What is the workflow of a servlet?

892


request parameter how to find whether a parameter exists in the request object?

775


Whether we can get deadlock situation in servlets?

799