Important JAVA Servlet General Technical Interview Questions, Important Java Servlet Problems and questions for java engineering or software programming written job recruitment exams.
Define a servlet.
What do you understand by JSP attributes?
Why do we require super.init(config) in servlets?
How can we know whether we need jsp or servlet in a project?
Define the servlet interface.
Points of difference between GenericServlet and HttpServlet.
How to find out whether the session will be alive or not.
Explain the significance of deployment descriptor in servlet.
What changes are observed after increasing the buffer size using attribute buffer’?
Explain the points of difference between ServletConfig and ServletContext.
Which two objects are accepted when a servlet recieves a call from a client.
Explain the difference between GET and POST service methods.
When is it necessary to use the ServletContext?
What is the order in which the following methods are called? service(),
doget() and dopost()
Why no constructor is provided in servlet?
Can a constructor be written in servlet?
What is the function of Servletconfig and ServletContext?
What do you mean by action=get?
Define the Singleton class. How is it written?
Explain the difference between sendRedirect() and forward()?
Which is faster – sendRedirect() or forward()?
What information is provided by the ServletResponse Interface to the servlet methods?
How can a JSP error page be invoked by a servlet?
What is the way to override an init method in servlets?
What is the number of ServletConfig and Servlet context objects in a single application?
Explain the need of Servlets.
Is it possible to abort the processing of JSP?
Can we servlet be used to create both dynamic and static webpages?
Explain the difference between JSP and servlets.
What are the merits of servlets over CGI?
How can the servlets in two difference applications communicate with each other?
How does a server find out when to invoke the init or destroy methods of servlet?
Explain the difference between servlets and applets.
What is the method of passing an argument from one servlet to another?
How do we add jsp to the servlet?
How are client requests handled by the Http servlet?
Explain the difference between multi thread and single thread model servlet.
How is communication made between servlet and applet?
What are the parameters of servlet context?
What do you understand by the servlet life cycle?
What are the different kinds of servlets?
How can we recieve one servlet’s context information at another servlet?
What lines of code are necessary before the use of PrintWriter?
What do you understand by a webserver?
Well they do form part of my revision for my semester exam.
Appreciate