PRJ301_-_1_-_SP_2024_-_FE_1708.webp
Đ

PRJ301_-_1_-_SP_2024_-_FE_1708.webp

☐ 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.

  • Love
Reactions: seloena

Thông tin

Category
PRJ301
Thêm bởi
Đình Phong
Ngày thêm
Lượt xem
3,047
Lượt bình luận
26
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ301_-_1_-_SP_2024_-_FE_1708.webp
File size
212.6 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom