×

Loading...

Topic

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.
    • Class.forName() is a convenience for you compile the code without a JDBC driver. It loads the class definition into the JVM.
    • By the way, most JDBC drivers have a "static initializer", which will be executed as the class is loaded first time.