9. MySQL and Java

Over the past several years, Java has emerged as a very popular programming language, thanks largely to its platform independence. You can use Java to create applets that run on Web pages, to write JavaServer Pages (JSPs), or to develop stand-alone applications.

Because Java always uses JDBC (Java Database Connectivity) to connect to a database, if you write your code properly and adhere to SQL standards, your Java applications can be easily ported from platform to platform and database application to database application. When it comes to using Java with MySQL, there is MySQL’s own special JDBC interface, called MySQL Connector/J.

Like the preceding two chapters, this one will not actually teach Java, though I will explain ...

Get MySQL, Second Edition: Visual Quickstart Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.