Q28_62_20240402073545.jpg | FuOverflow Community
  • Cùng tham gia cộng đồng FuOverflow trên Facebook  www.facebook.com/groups/fuoverflow

  • Ra mắt hệ thống Check điểm các môn thi sớm để về quê tự động, nhanh chóng tại FUO - Check score
    Check không đúng cam kết sẽ hoàn tiền

Q28_62_20240402073545.jpg
Misa

Q28_62_20240402073545.jpg

(Choose 1 answer)
<web-app>
Given the following deployment descriptor:
servlet><
<servlet-name>InitParams</servlet-name>
<servlet-class>com.osborne.c02.InitParamsServlet</servlet-class>
<init-param>
<param-name>initParm</param-name>
<param-value>Final Test</param-value>
</init-param>
</servlet>
</web-app>
What is the outcome of running the following servlet?
}
}
public class InitParams Servlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
ServletContext sc = this.getServletContext();PrintWriter out = response.getWriter();
out.write("Initialization Parameter is: " + sc.getInitParameter("initParm"));
A. A runtime error
B. "Initialization Parameter is: Final Test" returned to the requester
C. "Initialization Parameter is: null" returned to the requester
D. "Initialization Parameter is: null" written to the console

  • Like
Reactions: seloena

Thông tin

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

Image metadata

Filename
Q28_62_20240402073545.jpg
File size
304.2 KB
Dimensions
1920px x 892px

Share this media