adspace


Explain the necessary steps to connect to the database in java?

Answer Posted / A. Vinoth Saravanan

To connect to a database in Java using JDBC, you need to follow these steps:
1. Load the JDBC driver class.
2. Establish a connection with the database using the DriverManager or DataSource.
3. Send SQL queries and process the results.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we return resultset in java?

990