Solved

Which Java Statement Connects to a Database Using a Connection

Question 66

Multiple Choice

Which Java statement connects to a database using a Connection object?


A) Connection conn = new Connection(url, username, password) ;
B) Conenction conn = DriverManager.getConnection() ;
C) Connection conn = DriverManager.connect(url, username, password) ;
D) Connection conn = DriverManager.getConnection(url, username, password) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions