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. None

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

A1: b. Applications are run with the interpreter tool, and web pages containing applets can be run with the appletviewer tool as well as Java-capable World Wide Web browsers.
A2: a. The <applet> tag is used along with the <param> tag to send parameters to the applet. ...

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.