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

Hour 19: Creating a Threaded Program

Online Interactive Learning Lab

How to create the LinkRotator applet.

Hour 19 Quiz

Question 1. What class must be implemented for a program to use threads?

1.a. Runnable

1.b. Thread

1.c. Applet

Runnable must be used with the implements statement. Thread is used inside a multithreaded program, but it is not needed in the class statement that begins a program..

Question 2. If an interface contains three different methods, how many of them must be included in a class that implements the interface?

2.a. None of them

2.b. All of them

2.c. I know, but I'm not telling

An interface is a guarantee that the class includes all the interface's methods.

Question 3. You're admiring the work of another programmer who has created a program that handles four simultaneous tasks. What should you tell him?

3.a. "That's not half as exciting as the Anna Kournikova screensaver I downloaded off the Web

3.b. "You're the wind beneath my wings

3.c. "Nice threads!"

This compliment could be confusing if the programmer is well-dressed, but let's be honest, what are the chances of that?

Notes and Corrections

  • None.

Source Files

Reader Questions

  • None.

Activities

   
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!