PRJ301_-_SP_2024_-_Block_5_-_FE_1939.webp
K

PRJ301_-_SP_2024_-_Block_5_-_FE_1939.webp

(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");
I

Q: 12
  • Like
Reactions: seloena

Thông tin

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

Image metadata

Filename
PRJ301_-_SP_2024_-_Block_5_-_FE_1939.webp
File size
194.4 KB
Dimensions
1920px x 930px

Share this media

Back
Bên trên Bottom