Java Reference
In-Depth Information
Class java.lang.Thread
public class Thread
extends java.lang.Object
implements Runnable {
// Constants
public static final int MAX_PRIORITY;
public static final int MIN_PRIORITY;
public static final int NORM_PRIORITY;
// Static methods
public static native int activeCount();
public static native Thread currentThread();
public static native void sleep(long millis);
public static native void yield();
// Constructors
public Thread();
+ public Thread(String name);
public Thread(Runnable target);
+ public Thread(Runnable target, String name);
// Methods
+ public final String getName();
public final int getPriority();
+ public void interrupt();
public final native boolean isAlive();
public final void join();
public void run();
public final void setPriority(int newPriority);
public native synchronized void start();
public String toString();
}
Class java.lang.Throwable
public class Throwable
extends java.lang.Object {
// Constructors
public Throwable();
public Throwable(String message);
// Methods
public String getMessage();
public void printStackTrace();
public String toString();
}
Search WWH ::




Custom Search