Page 1
Wink Notes
B.Tech CSE — 5th Semester
Java Programming
— Unit - 5 —
1. JDBC Introduction
JDBC (Java Database Connectivity) is an API that allows Java applications to interact with relational databases (like MySQL, Oracle).
1.1 The Architecture
JDBC is composed of two layers:
- JDBC API: The interfaces (`Connection`, `Statement`, `ResultSet`) that developers code against. Provided in the `java.sql` package.
- JDBC Driver API: The bridge between the standard Java API and the proprietary database protocol. Each database vendor (Oracle, MySQL) provides their own `.jar` driver file.