• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SingleThreadModel - mock exam

 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is question from withmilk.com
A <%@page isThreadSafe="false" %>
B <%@page isThreadSafe="true" %>
C <%@page isThreadSafe=null %>
D None of the above
Answer at site says :
A is true. False value informs the yet to be compiled servlet to take care if this.
But I think B is correct. Someone pls. explain.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When does one use SingleThreadModel ?.
When the instance variables are not thread safe..So A is the answer..By saying that ur variables are not thread safe u mean to use SingleThredModel
Originally posted by Sam Cala:
Here is question from withmilk.com
A <%@page isThreadSafe="false" %>
B <%@page isThreadSafe="true" %>
C <%@page isThreadSafe=null %>
D None of the above
Answer at site says :
A is true. False value informs the yet to be compiled servlet to take care if this.
But I think B is correct. Someone pls. explain.

[ May 03, 2002: Message edited by: pradeep bhat ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic