can we override service method in my servlet class..?? if
yes or no why ??
Answer Posted / rajesh
We can override Service method in the servlet when we extend GenericServlet to create servlet as it is mandatory to override it. But when we extend HttpServlet to create a servlet then we cant override service as we need to override doGet or doPost method of HttpServlet
Is This Answer Correct ? | 17 Yes | 6 No |
Post New Answer View All Answers
What is the need of session tracking in web application?
What are common tasks performed by Servlet Container?
What are the benefits of using servlet over cgi?
What do you mean by filter in servlet?
How to get the server information in a servlet?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What are the key methods that are involved in processing of http servlets?
What is session tracking?
What is the difference between CGI and Servlet?
How do I know if java is running on linux?
Why don't we write a constructor in a servlet?
Define the life cycle of a servlets.
What are the advantages of Servlet over CGI?
Explain servlet.
What is cookie in servlet?