jdbc DriverManager.getConnection(“connection_url”, “username”, “password”);

前端 未结 2 1861
轻奢々
轻奢々 2021-01-27 14:43

Can anyone tell me wats happening here

Connection con =DriverManager.getConnection(\"connection_url\", \"username\", \"password\");

How connec

2条回答
  •  不思量自难忘°
    2021-01-27 15:01

    I mean con is a connection interface reference which can't point to an object of a class which implements connection interface

    Wrong. It can and it must. The actual implementation class is provided by the JDBC driver vendor.

提交回复
热议问题