In the Mock Test from JWeb+, there is a question like this:
Which of the following statements are correct? and the answer given is "Implementing SingleThreadModel ensures your servlet is thread safe, while I think the other answer "Servlets that not implement SingleThreadModel are not thread safe." is correct.
I wonder whether I am right.
Also in another Mock Test from Javaranch like this
"If you have a class that is accessed by a Servlet implementing the
SingleThreadedModel, no additional controls for synchronization are needed
to protect resources and are considered threadsafe."
The answer is false, which I think is correct. Implementing SingleThreadModle does not 100 percent ensures a servlet thread safe as we know.
Can anybody confirm my doubt for the first qusetion?