Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
Modifier and Type | Class and Description |
---|---|
class |
Thread
A thread is a thread of execution in a program.
|
Constructor and Description |
---|
Thread(Runnable target)
Allocates a new
Thread object. |
Thread(Runnable target,
String name)
Allocates a new
Thread object so that it has target
as its run object and has the specified name as its name. |
Modifier and Type | Class and Description |
---|---|
class |
TimerTask
A task that can be scheduled for one-time or repeated execution by a Timer.
|
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.