PrepAway - Latest Free Exam Questions & Answers

which of the following establishes a JDBC connection?

Given a JDBC data source named myDataSource, which of the following establishes a JDBC
connection?

PrepAway - Latest Free Exam Questions & Answers

A.
Connection con = myDataSource.open();

B.
Connection con = ConnectionManager.getConnection(myDataSource);

C.
Connection con = new Connection(myDataSource);

D.
Connection con = myDataSource.getConnection();


Leave a Reply