Q13_67_20240402073513.jpg
Misa

Q13_67_20240402073513.jpg

  • Media owner Misa
  • Ngày thêm
(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");

Thông tin

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

Image metadata

Filename
Q13_67_20240402073513.webp
File size
222 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên