Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

another question from E. Cobians test..

 
taash mg
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Question--------
Which of the following statements regarding HttpRequest methods are correct?
1) getHeaderNames returns an Enumeration
2) getHeaders returns a String[]
3) getHeaderValues returns a String[]
4) getIntParameter returns an int
the answer or this in the test is 1 but isn't 2 also correct??

Thanks
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
there is no HttpRequest class, but HttpServletRequest.
anyway getHeaders returns an Enumeration. check the servlets' api.
 
taash mg
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah thanks Asher checked that out too..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic