![]() Related Questions What exception is thrown when Servlet initialization fails ?(a) IOException (b) ServletException (c) What exception is thrown when Servlet initialization fails ?(a) IOException (b) ServletException (c) RemoteException (b) How can a Servlet call a JSP error page ?(a) This capability is not supported. (b) When the servlet throws the exception, it will automatically be caught by the calling JSP page. (c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException". (d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie. (c) Which method is called first each time a Servlet is invoked ?(a) Start() (b) Run() (c) Servive() (d) init() (d) Which is true about Servlets (a) Only one instance of Servlet is created in memory (b) MultiThreading is used to service multiple requests (c) Both (a) & (b) (c) What is Temporary Servlet ? (a) Servlet that is destroyed at run time (b) Servlet that exists for a session (c) Servlet that is started and stopped for each request (c) EXPLANATION: A temporary servlet is started when a request arrives and shut down after the response is generated. A permanent servlet is loaded when the server is started and lives until the Although it is not commonly done, what will you do if you want to have multiple instances of Servlet Although it is not commonly done, what will you do if you want to have multiple instances of Servlet in memory and if they have to share the execution of a user request ? (a) Defnie Single Thread model (b) Cannot be done
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||