Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between?when we write the code in
following manner?

class One extends httpservlet
{
}
and
class One extends genericservlet
{
}

Answer Posted / ravikiran.chd

the first one will restrict you to make use of http protocol
with the second one we can use other than http protocols as well

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the life-cycle methods for a servlet?

1047


What are different ways for authentication of servlet?

1159


What do you mean by httpservlet and how it is different from the genericservlet?

1120


How can you start a jta transaction from a servlet deployed on jboss?

1204


How to rectify errors in java servlet while compilation?

1004


Can you explain in detail 'javax.servlet' package?

1039


What is httpservlet class?

1223


What is the inter-servlet communication?

1220


When Servlet is unloaded?

1143


Why do we need a constructor in a servlet if we use the init method?

1098


Is tomcat a servlet container?

1108


What are sessions in servlets?

1108


What is the life-cycle of servlets?

1182


What is war file?

1173


What are the advantages of Servlet over CGI?

1199