Q21_1_20240402073530.jpg
Misa

Q21_1_20240402073530.jpg

  • Media owner Misa
  • Ngày thêm
☐ 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
Misa
Ngày thêm
Lượt xem
2,980
Lượt bình luận
26
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
Q21_1_20240402073530.webp
File size
212.6 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên