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 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.