Servlets Interview Questions
Questions Answers Views Company eMail

How do we translate jsp?

796

Explain mvc pattern.

812

What is the difference between context parameter and context attribute?

761

What are the life cycle methods of a servlet?

817

What is the difference between a generic servlet and http servlet?

754

Which exception is thrown if the servlet is not initialized properly?

813

What do you mean by mime type?

800

Explain is servlet mapping?

793

What is the difference between sendredirect() and forward() in a servlet?

770

What is the use of httpservletresponsewrapper?

746

How can you use a servlet to generate a plain text instead of html?

904

What is the servletconfig object?

790

How can you create a session in servlet?

873

Explain jsessionid?

833

Explain the steps involved in placing a servlet within a package?

810


Post New Servlets Questions

Un-Answered Questions { Servlets }

Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

880


What is a web container and what is its responsibility?

771


Are Servlets Thread Safe? How to achieve thread safety in servlets?

792


What are the functions of Servlet container?

859


Explain the custom jsp tags and the beans.

826


List some life cycle methods of a servlet.

815


What is called servlet container?

864


What is the use of servlet wrapper classes?

921


What are the phases of a servlet life cycle?

870


Explain how to improve Servlet Performance?

871


Why is http protocol called as a stateless protocol?

772


How do I use cookies to store session state on the client?

760


What are the important functions of filters?

849


What are the different methods of session management in servlets?

777


What are the advantages of cookies?

848