PRJ301_-_FA_2023_-_RE_1125.webp
bright_light

PRJ301_-_FA_2023_-_RE_1125.webp

(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

Thông tin

Category
PRJ301
Thêm bởi
bright_light
Ngày thêm
Lượt xem
2,755
Lượt bình luận
21
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ301_-_FA_2023_-_RE_1125.webp
File size
50 KB
Dimensions
1286px x 546px

Share this media

Back
Bên trên Bottom