O'Reilly logo

Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams by Jamie Jaworski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Threads

Java, unlike many other programming languages, provides native support for multithreading. This support is centered around the java.lang.Thread class, the java.lang.Runnable interface, and methods of the java.lang.Object class. Support is also provided through synchronized methods and statements.

The Thread class provides the capability to create objects of class Thread, each with their own separate flow of control. The Thread class encapsulates the data and methods associated with separate threads of execution and enables multithreading to be integrated within Java's object-oriented framework. The minimal multithreading support required of the Thread class (or other classes that support multithreading) is specified by the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required