Hour 4. Understanding How Java Programs Work

What You’ll Learn in This Hour:

• How applications work

• Organizing an application

• Sending arguments to an application

• How applets work

• Organizing an applet

• Putting an applet on a web page

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.

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