Multiple choice technology programming languages

Identify the advantages of JSP over Servlet

  1. a) Embedding of Java code in HTML pages

  2. b) Platform independence

  3. c) Creation of database-driven Web applications

  4. d) Server-side programming capabilities

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

JSP's key advantage over Servlets is the ability to embed Java code directly within HTML pages using special tags like <% %>. This makes JSP pages more natural for web designers and separates presentation from business logic more cleanly. While JSP does offer platform independence and can create database-driven applications, these are not unique advantages over Servlets. Server-side programming is common to both.