Exam 1z0-900 All QuestionsBrowse all questions from this exam
Question 30

Which two statements are true about the relationship between JavaServer Pages (JSP) and servlets? (Choose two.)

    Correct Answer: B, D

    A JSP page has access to the same information, objects, and a context as a servlet. This ensures that both JSPs and servlets can share data and interact with the same server-side resources. A JSP page must be written as either an XML file or a JSP file before it is turned into a servlet. This is a prerequisite for the JSP to function correctly because the web container translates JSP files into servlet code.

Discussion
ciellaf5Options: BD

B,D correct

peteVln

A is not correct. A JSP page is a document, not a Java class, and then JSP doesn't extends nothing

devmsalehOptions: BD

B,D correct

orjavaOptions: BD

Answer B D