Before executing any SQL query, which method must be called to establish a database connection?

Last Updated :
Discuss
Comments

Before executing any SQL query, which method must be called to establish a database connection?


DriverManager.registerDriver()

Connection.prepare()

DriverManager.getConnection()

DriverManager.createConnection()

Share your thoughts in the comments