Posts

Showing posts from October, 2026

OOP in JAVA

Image
JDBC (Java Database Connectivity) JDBC (Java Database Connectivity) is a standard Java API that enables Java applications to connect and interact with relational databases. It provides methods to execute SQL queries, retrieve results, and perform database operations such as inserting, updating, and deleting data. Supports SQL operations such as SELECT, INSERT, UPDATE, and DELETE. Works with multiple relational databases like MySQL, Oracle, PostgreSQL, and SQL Server. Uses JDBC drivers to establish communication between Java applications and databases. JDBC Architecture The JDBC API provides the standard interfaces, while the JDBC driver implements the database-specific communication required to interact with the database. Components of JDBC: 1. Application: It can be a Java application or servlet that communicates with a data source. 2. JDBC API: It allows Java programs to execute SQL queries and get results from the database. Some key components of JDBC API include Interfaces like D...