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

Doubt in HSFJ Final Mock Exam

 
Vasanth Raja.K.
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had a doubt in Q.49 on Final Mock Exam


Answer is 3.
What's wrong in answer 4?? since ServletConfig has getServletContext() method.
Plz explain .
Reg
Vasanth
 
Lloyd Lane
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree.

I think option D should be allowed too. getServletContext() is a method inside ServletConfig thus giving you a servletContext for which you can use methods to access the /META-INF directory i.e. option C.

Am I misunderstanding something?

Thanks

Lloyd
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic