Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Http specific interface, or generic interface??

 
Phil Rhodes
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I have a question about the SCWCD exam... should one expect questions of the following nature:
Identify the interface & method to retrieve a parameter from a request:
a) HttpServletRequest.getParameter( String )
b) HttpServletResponse.getParameter( String )
c) ServletRequest.getParameter( String )
d) ServletResponse.getParameter( String )
And if one were to encounter this question, how should you answer it? Obviously, getParameter is defined in ServletRequest interface, but it's tricky since HttpServletRequest extends ServletRequest, meaning the method exists in BOTH interfaces...
I've seen some reference materials that indicate you would answer with the Http specific one, and some that say you would use the generic one as your answer... any thoughts? Further, does anybody know if Sun would be sneaky enough to put a question on the exam where a distinction like that is significant?
Thanks...
 
Phil Rhodes
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, well.. I took the exam, and I didn't get any question that (as far as I could tell) this issue made a difference.
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Phil Rhodes
you've taken the beta exam?
 
Phil Rhodes
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I took the existing exam...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!