public MyServlet extends GenericServlet implements Runnable
public void run()
Which of the following statements are correct?
1. The servlet container can run multiple threads simultaneously on the same instance of this servlet. 2. The servlet container CANNOT run multiple threads simultaneously on the same instance of this servlet.
3. It will not compile because a servlet cannot implement Runnable.
4. It will compile but will throw exception at request time.
5. None of these.
Anybody knows the right answer. ??
its 1, 5 are the correct one. I don't undestand the purpose of this question?? normaly we choose "none of these" where rest of the options dosen't fit.
here we have to "none of these" with other option right.