Kinds of Programs
There are several types of programs that you can build in Java.
- Applications - Main programs that run independently. It can have either a Command-Line Interface (CLI) or a Graphical User Interface (GUI).
- Applets - Programs downloaded over the Internet that run in Web pages.
- Servlets - Programs that run on a Web server.
- JavaBeans - Components that can be used by other programs.
These notes cover only applications and a little bit about applets - the two most common forms of Java programs in textbooks. There was a lot of enthusiasm for Applets when Java first appeared because no other kind of program could safely be distributed over the Internet, but now applications, just normal programs, are seen as more important.