This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 186
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: 46

see this-

I agree. Here's the link:
subject: servlet
Similar Threads
PDF Download not working in Production.
Fetch 10K rows from table
JSF - printing .txt file content