nerdexam
Oracle

1Z0-899 · Question #120

You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately, after extensive load testing, you have discovered several race conditions in your JSP…

The correct answer is A. <%@ page isThreadSafe='false' %>. See the full explanation below for the reasoning.

Question

You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately, after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fix these problems would require significant recoding, but you are already behind schedule.Which JSP code snippet can you use to resolve these concurrency problems?

Options

  • A<%@ page isThreadSafe='false' %>
  • B<%@ implements SingleThreadModel %>
  • C<%! implements SingleThreadModel %>
  • D<%@ page useSingleThreadModel='true' %>
  • E<%@ page implements='SingleThreadModel' %>

How the community answered

(29 responses)
  • A
    76% (22)
  • B
    14% (4)
  • C
    7% (2)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice