Multiple choice technology web technology

What J2EE technology would you typically use to replace PHP scripts?

  1. Applets

  2. JSP

  3. JSP/Servlets

  4. JSP/Servlets and EJBs

  5. You would never replace PHP scripts with a J2EE technology

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JSP and Servlets are the core J2EE technologies for server-side web applications. JSP (JavaServer Pages) handles the presentation layer with dynamic content generation, while Servlets manage the request/response processing and business logic. This combination directly parallels PHP's server-side scripting role, making it the natural replacement. Applets are client-side Java programs, while EJBs handle enterprise business logic and transaction management - unnecessary for simple PHP replacement.