Chapter 8. Threads

OBJECTIVES

This chapter helps you prepare for the exam by covering the following objectives from the “Threads” section of the Sun testing objectives.

Write code to define, instantiate, and start new threads using both java.lang.Thread and java.lang.Runnable.

  • Several exam questions require you to know the different ways that threads are created and executed, and the methods they implement. You might be required to examine examples of program code and identify specific points within the code where threads are created and executed.

Recognize conditions that might prevent a thread from executing.

  • Executing threads might perform actions that result in them entering a wait state. Other events might also cause a thread to wait. Some ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams 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.