Servlets Interview Questions and Answers
Prepare for your Interview today!
Container creates instance of servlet by calling Class.forName(className).newInstance().
Yes, but Before calling the destroy() method, the servlet container waits for the remaining threads that are executing the servlet?s service() method to finish.
>We can give relative URL when we use ServletRequest and not while using ServletContext.
Since ServletRequest has the current request path to evaluae the relative path while ServletContext does not.
Most helpful rated by users: