JSP is by default thread safe or not? what is the meaning of
isThreadSafe="true" and isThreadSafe="false". Explain it?
Thanks,
Seenu
Answer Posted / bijay
<%@ page isThreadSafe="true" %> means you are specifying that the JSP page is thread-safe and hence, Container should create one Servlet instance and use it to handle mulitple client requests.
On the other hand, <%@ page isThreadSafe="false" %> means you are specifying that the JSP page is not thread-safe, so th Container should take necessary precaution. Container does this by queueing up requests and handling them one at a time.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we define package statement after import statement in java?
What about interrupt() method of thread class ?
What is the properties class?
What is the difference between method and means?
How many ways can we create the string object?
Are true and false keywords?
What are the main features of java?
What is an example of a boolean?
Explain the public class modifier?
Why parsing is done?
What is collection class in java? List down its methods and interfaces.
What is native method in java?
Why call by value prevents parameter value change?
What is an error in java?
Can memory leak happen java?