Servlets Interview Questions
Questions Answers Views Company eMail

What's the difference between servlets and applets?

806

What's the servlet interface?

859

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

798

When a servlet accepts a call from a client, it receives two objects. What are they?

1030

What is java servlet session?

749

What's the advantages using servlets than using cgi?

764

Can filter be used as request or response?

762

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

815

What do you mean by httpservlet and how it is different from the genericservlet?

782

What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

806

How do you create a cookie using servlet?

879

Why doesn’t a servlet include main()?

810

Write a simple servlet program to print the contents of html.

828

Why do we use sendredirect() method?

778

Explain the servlet filter.

763


Post New Servlets Questions

Un-Answered Questions { Servlets }

What is java servlet?

832


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

796


What is the use of welcome-file-list?

804


How will two or three servlets interact or communicate with each other?

1190


How many objects of a servlet is created?

1034


Is java servlet still used?

811


What is session tracking?

937


What is servlet interface?

983


What exception should be thrown when servlet is not properly initialized?

794


What is difference between get and post method?

811


What is cookies in servlet with example?

749


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

805


How the servlet is loaded?

832


What is servlet invoker?

808


What is war file?

808