Oracle
1Z0-899 · Question #124
For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code…
The correct answer is A. <jsp:declaration>. See the full explanation below for the reasoning.
Question
For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code snippet must you use to declare this instance variable in the JSP Document?
Options
- Ajsp:declaration
- B<%! int count = 0; %>
- Cjsp:declaration.instance
- Djsp:scriptlet.declaration
How the community answered
(26 responses)- A73% (19)
- B15% (4)
- C4% (1)
- D8% (2)
Community Discussion
No community discussion yet for this question.