Web Development and Software Design Fundamentals

Casual Mode - Take your time!

1 / 8
Correct
0
Incorrect
0
Score
0%
Multiple Choice

What is output to the web page on the second access to the same instance of the following JSP? (Choose one.) <%@ page language="java" %> Chapter 6 Question 2

Chapter 6 Question 2

<%! int x = 0; %> <%! public void jspInit() { System.out.println(x++); } %> <%= x++ %> <% System.out.println(x); %> <% jspInit(); %>

  1. 0
  2. 1
  3. 2
  4. 3
  5. 4
  6. Page does not translate.
Change Mode