This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / JDBC. Can we think the Class.forName() as import java.*;? Does the Class.forName() mean create a class dynamicly? tks.
-howru(How are you?);
2001-3-12
(#32297@0)
-
Class.forName() is a convenience for you compile the code without a JDBC driver. It loads the class definition into the JVM.
-jabber(jabber);
2001-3-13
(#32724@0)
-
By the way, most JDBC drivers have a "static initializer", which will be executed as the class is loaded first time.
-jabber(jabber);
2001-3-13
(#32735@0)