PRJ301_-_SP_2023_-_FE_125.webp
M

PRJ301_-_SP_2023_-_FE_125.webp

  • Media owner Maki95
  • Ngày thêm
Multiple Choices
(Choose 1 answer)
Consider the code shown in the exhibit for the init() method of a HTTP servlet.Which of the following LOC "may" correctly retrieve the DBURL parameter at //1?(Assume that servletcontext is a reference to ServletContext for this servlet.) (Choose one)
public void init()
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// 1 Get DBURL here
theConnection = DriverManager.getConnection(dbUrl, "admin", "admin");
A. this.getInitParameter("DBURL");
B. this.getParameter("DBURL");
C. this.getContextParameter("DBURL");
Ex

Thông tin

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

Share this media

Back
Bên trên Bottom