Chapter 19, “Accessing Databases Using JDBC”

Database clients use database drivers to send SQL statements to database servers and to receive result sets and other responses from the servers. Java applications and applets use JDBC drivers to communicate with database servers.

The forName() method of the java.lang.Class class can load database drivers.

The DriverManager class of java.sql manages the JDBC drivers that are installed on your system. The getConnection() method establishes a connection to a database.

All JDBC database protocols begin with jdbc:.

When a database connection is established using the getConnection() method of DriverManager, the getConnection() method returns an object that implements the Connection interface. This interface ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.