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 is the process to implement doget and dopost methods?

938


What is dispatcher servlet?

1017


Can we override destroy method in servlet?

946


What are life cycle methods of a servlet?

1017


Why is httpservlet declared abstract?

1070


Differentiate between get and post?

1114


How do you communicate in between Applets and Servlets?

1028


Explain the role of dispatcherservlet and contextloaderlistener.

1134


What are different methods of session management in servlets?

1220


What's the difference between authentication and authorization?

1089


What is a cookie What is the difference between session and cookie

1024


What are the life cycle methods of the servlet?

1043


Does servlet have main method?

1136


What are all the advantages of servlet over cgi?

1029


Whether thread can be used in servlets?

1166