Hii ,
public class ThreadTest extends
Thread {
public void run() {
System.out.println("In run");
suspend();
resume();
System.out.println("Leaving run");
}
public static void main(
String args []) {
(new ThreadTest()).start();
}
}
The program is printing only Run..
why it is not printing Leaving Run??
in
java 1.4 the suspend() is depricated since it is deadlock prone...
But program runs with warning...