Java Reference
In-Depth Information
Java initially became attractive because Java programs can be run from a Web browser.
Such programs are called applets. Applets employ a modern graphical interface with buttons,
text fields, text areas, radio buttons, and so on, to interact with users on the Web and process
their requests. Applets make the Web responsive, interactive, and fun to use. Applets are
embedded in an HTML file. HTML (Hypertext Markup Language) is a simple scripting lan-
guage for laying out documents, linking documents on the Internet, and bringing images,
sound, and video alive on the Web. Figure 1.11 shows an applet running from a Web browser
for playing a tic-tac-toe game.
applet
HTML
Enter this URL from a Web browser
F IGURE 1.11
A Java applet for playing tic-tac-toe runs from a Web browser.
Tip
For a demonstration of Java applets, visit java.sun.com/applets . This site provides a rich
Java resource as well as links to other cool applet demo sites.
Java is now very popular for developing applications on Web servers. These applications
process data, perform computations, and generate dynamic Web pages. The LiveLab auto-
matic grading system, shown in Figure 1.12 and which you can use with this topic, was devel-
oped using Java.
Java is a versatile programming language: You can use it to develop applications for
desktop computers, servers, and small hand-held devices. The software for Android cell
phones is developed using Java. Figure 1.13 shows an emulator for developing Android
phone applications.
1.21
Who invented Java? Which company owns Java now?
Check
1.22
Point
What is a Java applet?
1.23
What programming language does Android use?
 
Search WWH ::




Custom Search