PRJ301_-_FE_-_SU_2023_407.webp
sweet_heart

PRJ301_-_FE_-_SU_2023_407.webp

(Choose 1 answer)
Consider the Servlet definition in a web.xml file below.
(see picture)
What will the following line of code return if present in the init() method of TestServlet?getInitParameter(1):
A. It will return "US".
B. Compilation error.
C. Runtime error.
D. It will return "eastern".
E. It will return null.
<web-app>
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>com.abc.TestServlet</servlet-class>
<init-param>
<param-name>locale</param-name>
<param-value>US</param-value>
<init-param>
<init-param>
<param-name>timezone</param-name>
<param-value>eastern</param-value>
<init-param>
</servlet>
</web-app>
37

Thông tin

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

Image metadata

Filename
PRJ301_-_FE_-_SU_2023_407.webp
File size
61.4 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom