![Mcqmate logo](https://mcqmate.com/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/images/logos/logo-white.png)
McqMate
Q. |
Which of the following step establishes a connection with a database? |
A. | Import packages containing the JDBC classes needed for database programming. |
B. | Register the JDBC driver, so that you can open a communications channel with the database. |
C. | Open a connection using the DriverManager.getConnection () method. |
D. | Execute a query using an object of type Statement. |
Answer» C. Open a connection using the DriverManager.getConnection () method. |
View all MCQs in
Advanced JAVANo comments yet