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