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);
Monday, January 19, 2009
3.1.3 DriverManager Methods Are Static
Posted by abhilash at 4:32 AM
Labels: Java, Java DataBase Conectivity.
Subscribe to:
Post Comments (Atom)
0 Comments:
Post a Comment