Yesterday I a mock
test and ran into this question...
Mock question
Head first
Servlets &
JSP p212
Which calls provide information about initialization parameters that are applicable to an entire web application? (Choose all that apply.)
A. ServletConfig.getInitParameters()
B. ServletContext.getInitParameters()
C. ServletConfig.getInitParameterNames()
D. ServletContext.getInitParameterNames()
E. ServletConfig.getInitParameter(
String)
F. ServletContext.getInitParameter(String)
I found this very confusing as this is the notation for a static method to me and these kind
of questions are typically the ones in which they would test you on your knowledge on that.
Initially I chose none of them, but later in the exam there was a similar notation in another question
and I changed my mind.
A collegae of mine mentioned correctly that I would never have this problem on the exam
since that would say 'choose 2' for example , but still mumble mumble...