Owl Teach Yourself Java in 24 Hours, Fifth Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS HOUR / NEXT HOUR / THANKS
ROGERS CADENHEAD

Hour 4: Understanding How Java Programs Work

Online Interactive Learning Lab

How to create the RootApplet applet.

Hour 4 Quiz

Question 1. What type of Java program can be run by a Java interpreter?

1.a. applets

1.b. applications

1.c. none

Applications are run with the interpreter tool, a d web pages containing applets can be run with the appletviewer tool as well as Java-capable web browsers.

Question 2. What special HTML tag is used to put a Java program onto a web page?

2.a. applet

2.b. program

2.c. run

The applet tag is used along with the param tag to send parameters to the applet.

Question 3. If you get into a fight with someone over the way to send information to a Java application, what are you doing?

3.a. Struggling over strings

3.b. Arguing about arguments

3.c. Feudin' for functionality

Applications receive information in the form of arguments. Can't we all just get along?

Notes and Corrections

  • Pages 43-44: If you have trouble getting NetBeans to run an application with arguments, run the program by choosing Run, Run Project or hitting the F6 key. Edit
  • At the end of this hour, the workshop is a guided tour of several Java applets. Each of these shows how a Java program on the Web can be modified with the use of the PARAM tag. Visit each of the following pages with a Web browser that supports Java: Edit

Source Files

Reader Questions

  • None.

Activities

  • Solution 1: Visit JARS, the Java Applet Ratings Service, and use the search term "headline" to find applets that display news headlines. Edit
  • Solution 2: NewRoot.java. Edit
   
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS HOUR / NEXT HOUR / THANKS

Search terms used to find this page: Java programming, teach yourself, 24 hours, how to, learn, Sams, Macmillan, Java2, JDK1.5, Java 1.5, JDK 1.5, SDK1.5, Java 2 SDK 1.5, SDK 1.5, Java 2 version 1.5, J2SE 1.5, J2SE 5, Java 2 Standard Edition 1.5, Java 2 Standard Edition 5, Java 2 SDK, Java SDK, Rogers Cadenhead, tutorial, hands-on, source code, code, javac, java, appletviewer, help, learning, applet, application, Java Plug-in, plugin, Swing, GUI, interface, Java2D, IO, Java Web Start, games, novice, beginner, neophyte, rookie

Valid HTML 4.01!

Valid CSS!