File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet" Watch "servlet" New topic


ritesh srivastav

Joined: Nov 30, 2012
Posts: 8
servlet is class or interface??expain your answer.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Welcome to CodeRanch ritesh srivastav

do you mean javax.servlet.Servlet or javax.servlet.http.HttpServlet ?
ritesh srivastav

Joined: Nov 30, 2012
Posts: 8
Emanuel Kadziela
Ranch Hand

Joined: Mar 24, 2005
Posts: 187
gurunath pai

Joined: Dec 10, 2012
Posts: 13

It is a interface, it is implemented for protocol specific. eg : HttpServlet fro HTTP protocal.

“Anyone who has never made a mistake has never tried anything new.” ― Albert Einstein
Divya Chandel
Ranch Hand

Joined: Jun 09, 2011
Posts: 47

see this-

I agree. Here's the link:
subject: servlet
jQuery in Action, 3rd edition