Explain the steps to connect database in Java with example.
Answers
Answered by
0
Fundamental Steps in JDBC
Import JDBC packages.
Load and register the JDBC driver.
Open a connection to the database.
Create a statement object to perform a query.
Execute the statement object and return a query resultset.
Process the resultset.
Close the resultset and statement objects.
Close the connection.
Similar questions