JDBC_Java_Database_Connectivity
JDBC_Java_Database_Connectivity
JDBC Architecture:
JDBC follows a four-layered architecture:
1. JDBC API – Provides the necessary interfaces and classes to interact with databases.
2. JDBC Driver Manager – Loads the database-specific driver required to connect to the
database.
3. JDBC Drivers – Acts as a translator between Java applications and database management
systems (DBMS).
4. Database – The actual storage where data is managed and retrieved.
Advantages of JDBC:
- Provides an easy and consistent way to interact with databases.
- Supports both simple and complex queries, including transactions.
- Allows secure and optimized database access.
- Works with various databases by simply changing the driver configuration.