Given a JDBC data source named myDataSource, which of the following establishes a JDBC
connection?
A.
Connection con = myDataSource.open();
B.
Connection con = ConnectionManager.getConnection(myDataSource);
C.
Connection con = new Connection(myDataSource);
D.
Connection con = myDataSource.getConnection();