1.2 The Echo Application
Java programs fall into two groups:
- Applets
Java programs that are downloaded over the Web and executed locally
by a Java-enabled Web browser such as Netscape Navigator,
Netscape Communicator, and Microsoft Internet Explorer.
- Applications
Stand-alone Java programs run by the Java interpreter instead of a
Web browser.
In this section you will learn how to create, compile, debug, and run a
Java application. In the next section you
will learn this for applets.
Our main example will be a Java program that echoes words that are entered
- as extra parameters when executing the application;
- as extra parameters in a Web page in case of an applet;
- via an input field in an applet.