Sams Teach Yourself Java 2 in 24 Hours

Sams Teach Yourself Java 2 in 24 Hours

By Rogers Cadenhead

Quiz

Test your knowledge of the material covered in this chapter by answering the following questions.

Questions

  1. Which type of Java program can be run by a Java interpreter?
    1. applets
    2. applications
    3. both
  2. What special HTML tag is used to put a Java program onto a Web page?
    1. <APPLET>
    2. <PROGRAM>
    3. <RUN>
  3. If you get into a fight with someone over the way to send information to a Java application, what are you doing?
    1. Struggling over strings
    2. Arguing about arguments
    3. Feudin' for functionality

Answers

  1. c. Both. Web browsers use their own built-in interpreters or the Java Plug-in. Applications use a command-line interpreter such as the java tool in the SDK.
  2. a. The <APPLET> tag is used along with the <PARAM> tag to send parameters to the applet. You'll learn about a second tag that can be used to present applets during Hour 17.
  3. b. Can't we all just get along?

Share ThisShare This

Informit Network