Question: why jsp is slower than servlet?
Answer: Servlet is faster than JSP. JSP is slower than Servlet because first the translation of JSP to java code is taking place and then compiles. Modification in Servlet is a time-consuming task because it includes reloading, recompiling and restarting the server as we made any change in our code to get reflected.