Java provides a back-end-independent interface to databases called Java DataBase Connectivity classes, or JDBC. We introduce the basics of the system here, and illustrate portability that makes it possible for our application to switch between two different database back ends.
We will cover the basics of interaction with a database in Java. This involves
Establishing and tearing down connections to a database
Querying data in the database and reading the results
Performing other database operations that modify data, but do not return data results
We assume that you are familiar with simple SQL constructs.
For many real-world applications, there are copious amounts ...