[单选题]

在访问数据库时,为建立实际的网络连接,把URL、数据库用户名和密码传给DriverManager的方法是 ( )。

A.getconnection()

B.getConnection()

C.Connection()

D.connection()

参考答案与解析: