Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doHead Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doHead" Watch "doHead" New topic
Author

doHead

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
Hi
Please confirm the answer to the following question.
Which of the following statements is correct?
Select 1 correct option.
a. Generic Servlet defines but does not implement doHead method.
False.
b. The default implementation of HttpServlet class doHead method calls the doGet method.
Don't know.
c. The HttpServlet class does not implement a dummy doHead method.
False.
d. There is no special method for HEAD request, doGet handles HEAD requests.
e. If the servlet does not implement doHead , doGet will be called upon HTTP HEAD request.
Don't Know.
The answer says B is correct.
I want to know why B is correct and so if B is correct then why is E wrong?
I checked the API but nowhere it mentions that the default implementation of doHead calls doGet.
Thanks
-- Ravi


SCJP, SCJD, SCWCD, SCBCD, SCEA
 
jQuery in Action, 2nd edition
 
subject: doHead
 
Similar Threads
doHead() method calls??
Question on HTTP methods
HEAD
Mock Exam Doubts
doHead() internally calls doGet()