PRJ301_-_SP_2024_-_Block_5_-_RE_1951.webp
V

PRJ301_-_SP_2024_-_Block_5_-_RE_1951.webp

(Choose 1 ans AUTO CAP ON
<web-app>
<servlet>
<servlet-name>Test Servlet</servlet-name>
<servlet-class>com.abc. Test Servlet</servlet-class>
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 null.
<init-param>
<param-name>timezone</param-name>
<param-value>eastern</param-value>
<param-value>US</param-value>
<init-param>
<param-name>locale</param-name>
<init-param>
B. Compilation error.
<init-param>
C. It will return "US".
</servlet>
D. Runtime error.
</web-app>
FUO
E. It will return "eastern".
  • Like
Reactions: seloena

Thông tin

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

Image metadata

Filename
PRJ301_-_SP_2024_-_Block_5_-_RE_1951.webp
File size
220.1 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom