• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Enthuware

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic