• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HFJS (V2) Final Mock Question 60 is wrong?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

When comparing servlet initialization parameters to context initialization parameters, which are true for both? (Choose all that apply.)
A. In their respective DD tags, they both have a <param-name> and a <param-value> tag.
B. Their respective DD tags are both placed directly under the <web-app> tag.
C. Their respective methods used to retrieve initialization parameter values are both called getInitParameter.
D. Both can be directly accessed from a JSP.
E. Only changes to context initialization parameters in the DD can be accessed without redeploying the web application.

Book's answer: AC

I think it should be ACD
The book explains '-Option D: only context params can be directly accessed from JSPs'. But JSPs have both application and config implicit objects. They can be used to access init parameters respectively.

What do you guys think?

Kay
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this question is related to this FAQ.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic