What is the key difference in the way servlets and JSPs are compiled?
- Both servlets and JSPs are compiled just-in-time (JIT)
- Both servlets and JSPs are interpreted
- JSPs are precompiled
- Servlets are precompiled
Servlets are precompiled into bytecode during the build process, while JSPs are typically compiled into servlets at runtime. This compilation difference contributes to the performance variations between servlets and JSPs.
Loading...
Related Quiz
- What changes are required in a servlet to handle multipart/form-data requests?
- To apply multiple filters to a single resource, the web.xml file must define a __________ for each filter.
- How can an HTTP servlet differentiate between GET and POST requests?
- To pass the request and response to the next entity in the chain, the filter uses the __________ method.
- Which method of the HttpServlet class is used to handle HTTP GET requests?