Close

What is JDBC? tririd.com

To connect database with Java Application JDBC is useful.

JDBC is an acronym for Java Database Connectivity. It’s advancement for ODBC (Open Database Connectivity). JDBC is a standard API specification developed in order to move data from frontend to backend. This API consists
of classes and interfaces written in Java.

You have to follow the steps for JDBC Connection:

1. Import the Package.

java.sql.*:

2. Load and Register the Driver.

Class.forName(“oracle.jdbc.driver.OracleDriver”);

Class.forName(“com.mysql.jdbc.driver”);

3. Establish the Connection.

Connection con = DriverManager.getConnection(url,user,password)

4. Create the Statement.

5. Execute the query.

6. Process result

7. Close

Tririd conduct training for C++, Core Java, Advance Java, Python, .Net etc. Programming Languages in Ahmedabad.

For more information about Java Course and TRIRID.

Call us @ 8980010210

Visit us @ http://www.tririd.com/

Leave a Reply

Your email address will not be published. Required fields are marked *