(Choose 1 answer)
Consider the code of ReportServlet servlet of a web application. Assuming generateReport() is valid method and have no problems, which of the following statement about these servlet is true?
A. ReportServlet.java won't compile.
B. ReportServlet.java will compile and run without any problems.
C. ReportServlet will throw exception at runtime.
//In file ReportServlet.java
public class ReportServlet extends HttpServlet
public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException
String userid= req.getSession().getAttribute("userid");if (userid != null) generateReport (req, res);
}
Finish
Exit 8