Java Database Connectivity (JDBC) ,Steps to connect to the database in Java
JDBC Java Database Connectivity (JDBC) API is a Java API that can access any kind of tabular data, especially data stored in a Relational Database. JDBC works with Java on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX. JDBC Driver JDBC Driver is a software component that enables java application to interact with the database. There are 4 types of JDBC drivers: 1. JDBC-ODBC bridge driver-Type 1 2. Native-API driver (partially java driver)-Type 2 3. Network Protocol driver (fully java driver)-Type 3 4. Thin driver (fully java driver)-Type 4 JDBC classes are enclosed in java.sql package. This package contains following set of classes and interfaces. Classes/interface Description java.sql.BLOB Provide support for BLOB(Binary Large Object) SQL type. java.sql.Connection creates a