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.

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 any graphical images that appear on the page, and loads the executable content (as applets) so the content can execute. The executable content executes ...

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