Which of these statements gets a JDBC connection successfully?
A.Connection con = ds.createConnection();
B.Connection con = ds.getConnection();
C.Connection con = ds.retrieveConnection();
D.Connection con = ctx.getConnection();
Answer:B
Which of these statements gets a JDBC connection successfully?
A.Connection con = ds.createConnection(); B.Connection con = ds.getConnection(); C.Connection con = ds.retrieveConnection(); D.Connection con = ctx.getConnection();