Introduction Of JDBC In Java
JDBC
In Java, JDBC is an API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database.
In other words, JDBC means Java Database Connectivity is a standard Java API for the database-independent connectivity between Java programming language and a large collection of the databases.
The latest version of JDBC is 4.2 currently. Java has an updated JDBC API to ease and simplify the coding to the database interactivity.
Why we use JDBC?
Prior to JDBC, ODBC API was the database API to connect and execute the query with the database but ODBC API uses ODBC driver, which is written in C language is platform dependent and unsecured, which is why, Java define its own JDBC API, which uses JDBC drivers, which is written in Java language.
What is API?
Application programming interface (API) is a document, which has an explanation of all the features of the software. API can be created for the Applications, operating systems etc. It represents the classes and interfaces, which software programs can follow to communicate with each other.
Summary
Thus, we learnt, JDBC is a standard Java API for the database-independent connectivity between Java programming language and a large collection of the databases.