Which statement is true about the DriverManager class?
A. It returns an instance of Connection.
B. It executes SQL statements against the database.
C. It only queries metadata of the database.
D. It is written by different vendors for their specific database.
题解
选项 A,使用 DriverManager 类别的 getConnection,可以连接数据库并取得 Connection 对象实体。
选项 B,Statement 对象才可以运行 SQL 叙述。
选项 C,DriverManager 是用来加载 JDBC 的 Driver 和连接数据库。
选项 D,这个叙述描述的应是 Driver 类别。
