Servlet

Java Servlet Projects

Servlet Project 3

Servlet Interview Questions And Answers
More interview questions and answers

What is a servlet ?

Can we use the constructor, instead of init(), to initialize servlet?

What is servlet context ?

What is servlet mapping?

What is session?

What Difference between GET and POST ?

What mechanisms are used by a Servlet Container to maintain session information?

What are the different ways for session tracking?

What is the difference between ServletContext and ServletConfig?

How can a servlet refresh automatically?

What is Server side push?

What is the Max amount of information that can be saved in a Session Object ?

Why should we go for inter servlet communication?

What is a output comment?

What are the differences between a session and a cookie?

What is HttpTunneling?

Why in Servlet 2.4 specification SingleThreadModel has been deprecated?

How can I set a cookie?

How will you delete a cookie?

What is the difference between Context init parameter and Servlet init parameter?

What are the different ways for getting a servlet context?

What is the difference between an attribute and a parameter?

How to make a context thread safe?

What is the difference between setting the session time out in deployment descriptor and setting the time out programmatically?

How can my application get to know when a HttpSession is removed?

How many cookies can one set in the response object of the servlet? Also, are there any restrictions on the size of cookies?

When a session object gets added or removed to the session, which event will get notified ?

What is URL Encoding and URL Decoding ?

What is the difference between an applet and a servlet?

What is life cycle of servlet?

When init() and Distroy() will be called.

What is the use of setComment and getComment methods in Cookies ?

Why we are used setMaxAge() and getMaxAge() in Cookies ?

What is the use of setSecure() and getSecure() in Cookies ?

How do you communicate between the servlets?

What is Servlet chaining?

How will you communicate from an applet to servlet?

Can we call a servlet with parameters in the URL?

How do servlets handle multiple simultaneous requests?

Explain the directory structure of a web application?

What is pre initialization of a servlet?

What are the uses of ServletRequest?

What are the uses of ServletResponse interface?

How HTTP Servlet handles client requests?

Is HTML page a web component?

What is the web container?

What is deployment descriptor?

Do objects stored in a HTTP Session need to be serializable? Or can it store any object?

How can you implement singleton pattern in servlets ?

What is the difference between an application server and a web server?

What is servlet exception?

What is a WAR file?

What is a servlet filter?

What is Web resource ?

I plugged in a version of Apache Xalan that I downloaded from the Apache Web site, and now I get errors when I try to transform documents. What is the problem?

What is Web server ?