Monday, January 19, 2009

3.1.3 DriverManager Methods Are Static

All DriverManager methods are declared static, which means that they operate on the class as a whole rather than on particular instances. In fact, the constructor for DriverManager is declared private to prevent users from instantiating it. Logically, there is one instance of the DriverManager class. This means that methods are called by qualifying them with DriverManager, as in the following line of code.
DriverManager.setLogWriter(out);

0 Comments: