• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in HSFJ Final Mock Exam  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!