Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about dispatch  RSS feed

 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers

I attended this qn Boson practice test. I am confused with the answer given in the test

What HTTP Servlet class method is used to dispatch an HTTP POST request?
A) doGet
B) Service
c) doPost
D) doTrace
E) service

my answer is doPost. The answer given is service is it correct?
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Verbatim from the Servlet 2.4 Spec, Pg 230:
service handles standard HTTP requests by dispatching them to the handler methods for each HTTP request type.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!