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