Java Provides Executable Content

When working with Java, you'll often hear and read about executable content. Executable content is what Java is really all about. A Web page contains executable content via HTML commands in the form of a Java applet. Any Web page's Java-based content exists on the target user's computer. Figure 20.1 shows an overview of an HTML document with two embedded Java applets.

Figure 20.1. HTML serves up Java's executable content.

When the user enters or clicks the URL that displays the page seen in Figure 20.1, the user's Web-browsing software loads the HTML code, formats the page's text according to the HTML tags, displays ...

Get Absolute Beginner's Guide to Programming, Third 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.