Oracle
1Z0-899 · Question #39
You are creating a new ISP page and you need to execute some code that acts when the- page is first executed, but only once. Which three are possible mechanisms for performing this initialization…
The correct answer is B. In the jspInit method. D. In a JSP declaration, which includes an initializer block. E. In a JSP declaration, which includes a static initializer block. See the full explanation below for the reasoning.
Question
You are creating a new ISP page and you need to execute some code that acts when the- page is first executed, but only once. Which three are possible mechanisms for performing this initialization code? (Choose three)
Options
- AIn the init method.
- BIn the jspInit method.
- CIn the constructor of the JSP's Java code.
- DIn a JSP declaration, which includes an initializer block.
- EIn a JSP declaration, which includes a static initializer block.
How the community answered
(34 responses)- A12% (4)
- B71% (24)
- C18% (6)
Community Discussion
No community discussion yet for this question.