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

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

Answer Posted / geetha

generic servlet is for all type of protocols and
http are specific to http protocol

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the directory structure of a war file?

899


How forward () method is different from send redirect () method?

706


What's the difference between servlets and applets?

747


Which java application server is the best?

754


What is difference between server and servlet?

783


What is http servlet? Explain with the help of an example.

781


How to get the current httpsession object?

863


How can the session in servlet be destroyed?

859


Can a jsp be called using a servlet?

770


What is difference between cookies and httpsession?

763


When jsessionid is created?

758


Why are servlets used?

733


What are the uses of servlet and what is servlet chaining?

778


What is string tokenizer?

816


What are the features added in Servlet 2.5?

942