How to Connect Java (JDBC) with MySQL or Oracle Database

In this tutorial you will learn how to connect java (jdbc) with mysql or oracle database. Java JDBC is an API used to connect with database and perform all database related operations.   There are few steps for connecting java with any database. 1. Register Driver Class 2. Create Connection 3. Execute Queries 4. Close Connection   1. Register Driver Class We can register driver class by passing its name in Class.forName() method.   Example:

  Driver class for Oracle: oracle.jdbc.driver.OracleDriver

Read more
1 2