• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Initialization for a JSP

 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to share this question I have tested:

Which are possible locations for code to perform initialization for a JSP?

A. In the jspInit() method.
B. In the init(ServletConfig) method.
C. In the constructor of the JSP's Java code.
D. In a JSP declaration which includes an initializer block.
E. In the init() method
F. in static initializer block

From what i have tested answers will be: A,D,E, F

here is the code if you want to test it

I hope it will help others.
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parth please tell us the source of the question...
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read the question in many mock exams. Most recently I read it in SAI mock exam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic