Q. Which of the following step establishes a connection with a database? (Solved)
1. Import packages containing the JDBC classes needed for database programming.
2. Register the JDBC driver, so that you can open a communications channel with the database.
3. Open a connection using the DriverManager.getConnection () method.
4. Execute a query using an object of type Statement.
- c. Open a connection using the DriverManager.getConnection () method.