Servlets Interview Questions
Questions Answers Views Company eMail

How do we translate jsp?

764

Explain mvc pattern.

756

What is the difference between context parameter and context attribute?

711

What are the life cycle methods of a servlet?

768

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

706

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

765

What do you mean by mime type?

743

Explain is servlet mapping?

752

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

718

What is the use of httpservletresponsewrapper?

701

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

836

What is the servletconfig object?

732

How can you create a session in servlet?

809

Explain jsessionid?

790

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

773


Post New Servlets Questions

Un-Answered Questions { Servlets }

How to get the path of servlet in the server?

712


Can a jsp be called using a servlet?

767


Explain mvc pattern.

756


Why filter is used in servlet?

728


What is the use of send redirect () method?

781


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

738


What is the use of httpservletrequestwrapper?

771


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

754


What is a servlet context?

807


Explain the architechure of a servlet?

811


Given the request path below, which are context path, servlet path and path info?

750


What is preinitialization of a servlet?

768


Is java servlet still used?

753


Write a hello world program using servlets.

781


What is the difference between the include() and forward() methods?

783