What will be the value of ‘val’ displayed when JSP page is accessed for the…

PYQ RPSC Programmer 2024

What will be the value of ‘val’ displayed when JSP page is accessed for the third time since server startup? <%! int val = 0; %> <% val++; %> <html><body><p> val: <%= val %> </p></body></html>

  1. A.

    1

  2. B.

    2

  3. C.

    3

  4. D.

    The value of val will remain 0

  5. E.

    Question not attempted

Attempted by 215 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…