Which two statements are true about the relationship between JavaServer Pages (JSP) and servlets? (Choose two.)
Which two statements are true about the relationship between JavaServer Pages (JSP) and servlets? (Choose two.)
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.
B,D correct
A is not correct. A JSP page is a document, not a Java class, and then JSP doesn't extends nothing
B,D correct
Answer B D