• 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..
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!