PRJ301_-_RE_-_SU_2023_554.webp
golden_star

PRJ301_-_RE_-_SU_2023_554.webp

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

Exit 13

Thông tin

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

Image metadata

Filename
PRJ301_-_RE_-_SU_2023_554.webp
File size
56.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom