Chapter 12. Java Programming

Java's “write once run anywhere” philosophy allows you to distribute your application over multiple Intel and UNIX platforms. Java programs can access DB2 databases from standalone applications, applets running within a Web browser, and servlets running from powerful Web application servers such as IBM WebSphere. DB2 also has both static and dynamic SQL programming support for Java, allowing you to maximize your performance, and offering you flexibility as needed.

DB2 provides JDBC drivers to write dynamic SQL programs in Java. Similarly, DB2 comes with an SQLj driver so that you can embed static SQL statements into your Java code. The beauty of SQLj is that it uses JDBC for all of its run-time operations. This allows ...

Get DB2® Universal Database™ v8 Application Development Certification Guide, 2nd Edition 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.