PRJ302_-_SP_2024_-_FE_1653.webp
Sakura_desu

PRJ302_-_SP_2024_-_FE_1653.webp

(Choose 1 answer)
</context-param>
<servlet>
<servlet-name>InitParams</servlet-name>
<servlet-class>InitParamsServlet</servlet-class>
</servlet>
</web-app>
What is the outcome of running the following servlet? (Choose one.)
public class InitParams Servlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { out.write("Initialization Parameter is: " + sc.getInitParameter("jdbcDriver"));
ServletContext sc = this.getServletContext();
PrintWriter out = response.getWriter();
}
}
A. A runtime error
B. "Initialization Parameter is: sun.jdbc.odbc.JdbcOdbcDriver" returned to the requester
C. "Initialization Parameter is: null" returned to the requester
D. "Initialization Parameter is: null" written to the console
FUOS Mi

Q: 35

Thông tin

Category
PRJ302
Thêm bởi
Sakura_desu
Ngày thêm
Lượt xem
1,704
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRJ302_-_SP_2024_-_FE_1653.webp
File size
280.1 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom