What are the steps required to execute a query in JDBC?- JDBC is a pure Java API which is used to execute the SQL statements.
- A set of classes and interfaces is provided that can be used by the developers to write the database applications.
Following are the steps required to execute a query in JDBC:
1. Load JDBC drivers. 2. Register the driver with DriverManager class. 3. Open a connection. 4. Create Statement object using connection object that enables to execute the query.
|