can we override service method in my servlet class..?? if
yes or no why ??
Answer Posted / muzaffar
Yes, we can override service method. But then we have to give our own implementation to detect which type of method request is using.(i.e GET or POST). Since we mostly use HTTP as a protocol itz best to extend HTTPServlet and override doGET or doPOST accordingly.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How do I know if java is running on linux?
How are filters?
What are some advantages of storing session state in cookies?
How to notify an object in session when session is invalidated or timed-out?
What must be implemented by all servlets?
Explain get and post.
How the typical servlet code look like ?
What are the supporting protocol by HttpServlet ?
How to create war file?
What’s the difference between genericservlet and httpservlet?
What is the difference between forward () and sendredirect () functions in servlet? Explain
Explain jsessionid?
Explain servlet life cycle?
What are the phases of servlet life cycle?
What do you mean by cgi in servlet?