Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enthuware

 
Abhishek Kumar Singh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody can tell how much is the difficulty level of enthuware compared to the real exam?I think enthuware is really hard.
 
Abhishek Kumar Singh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider the code shown in the exhibit for the init() method of a HTTP servlet.

public void init()
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// 1 Get DBURL here
theConnection = DriverManager.getConnection(dbUrl, "admin", "admin");
}

Which of the following LOCs "may" correctly retrieve the DBURL parameter at //1?

(Assume that servletcontext is a reference to ServletContext for this servlet.)







Ans: servletcontext.getInitParameter("DBURL");
Here is the answer valid as init method cannot access any implicit object except ServletConfig.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic