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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *