hi
1.what method should be written in the foll. code to stop the
thread from executing instead of stop(),at xxxx.
so that the output is "before the start method" only.
public class Q1 extends Thread
{
public void run()
{System.out.println("before start method");
//this.xxxx
System.out.println("after start method");
}
public static void main(
String args[])
{
Q1 q=new Q1();
q.start();
}
}