Question 54 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question 54 of 72 from exam 1Z0-900: Java EE 7 Application Developer

Question

Given the code fragment:

protected void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
PrintWriter out = res.getWriter();
out print(""Service() method called.");

protected void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
PrintWriter out = res.getWriter();
out.print("Get() method called."):

What output will be returned when this servlet is called a GET request?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.