O'Reilly logo

Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition by Rogers Cadenhead

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Day 18. Accessing Databases with JDBC 4.2 and Derby

Almost all Java programs deal with data in some way. So far you have used primitive types, objects, arrays, hash maps, and other data structures.

Today, you work with data in a more sophisticated way by exploring Java Database Connectivity (JDBC), a class library that connects Java programs to relational databases.

Java includes Java DB, a compact relational database that makes it easier than ever to incorporate a database into your applications. Java DB is Oracle’s name for Apache Derby, an open source database maintained by the Apache Software Foundation.

Today, you explore JDBC in the following ways:

Using JDBC drivers to work with different relational databases

Accessing a database with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required