• 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
 
What are you doing? You are supposed to be reading this 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!