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

List some life cycle methods of a servlet.

779


Why jsp is better than servlet?

728


What are the difference between session and cookies in servlet? Explain

777


What is Servlets and explain the advantages of Servlet life cycle?

803


Explain the servlet context.

802


How many servlet objects are created?

763


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

732


What are the supporting protocol by HttpServlet ?

847


What is the life cycle of a servlet?

1074


What is the difference between using getSession(true) and getSession(false) methods?

788


Explain servlet events?

734


What is the major difference between context parameter and context attribute?

814


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

782


What are some advantages of storing session state in cookies?

779


What is servlet and its use?

805