O'Reilly logo

Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams by Jamie Jaworski

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

Setting Up a Database

To use JDBC, you need a database server and a database driver. Because you might be running Java on a platform different from what this book uses, this example uses a pure Java database server and driver (Type 4).

The hsql database server is a pure Java server that is freely available from http://hsqldb.sourceforge.net/. Download the zip file and expand it into a directory in your file system.

The hsql database server is an excellent example of what it takes to build a database with Java. You will see in Chapter 20, “Developer Assignment Guide,” an example of what you can do. hsql has a lot of functionality from which you can learn. Because the source is provided, it is strongly recommended that you peruse it. In particular, ...

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