Chapter 4. Understanding How Java Programs Work

<feature><title></title>

WHAT YOU’LL LEARN IN THIS HOUR:

  • How applications work

  • Organizing an application

  • Sending arguments to an application

  • How applets work

  • The required parts of an applet

  • Sending parameters to an applet

  • Using HTML tags to put an applet on a page

</feature>

An important distinction to make in Java programming is where your program is supposed to be running. Some programs are intended to work on your computer. Other programs are intended to run as part of a web page.

Java programs that run locally on your own computer are called applications. Programs that run on web pages are called applets. During this hour, you learn why that distinction is important.

Creating an Application

The Saluton ...

Get Sams Teach Yourself Java™ in 24 Hours, Fifth 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.