Tuesday, November 29, 2011

Types of Servlets?

Servlets must implement the interface javax.servlet.Servlet. There are two main types of servlets: :Servlet Is an interface.:2 types of servlets is the wrong answer.The correct answer is,:Servlet is an Interface:2 types of servlets is the wrong answer.The correct answer is,:There are two types of servlets. First one is servlets which generaes Static contents..:Yes there are n number of ways to create servlets.Servlet is an interface,GenericServlet class inherits the properties of servlet and HttpServlet class inherits the properties of GenericServlet.In the similar manner by inheriting the properties from HttpServlet we can develop servlets.That means we can develop servlets by using not only servlet,GenericServlet,HttpServlet but also all the inherited classes of HttpServlet.:There are two types of servlets available in java
Category:Servlet Interview Questions

No comments:

Post a Comment