hi all,
the following program compile but hangon at runtime
public class G124 extends
Thread {
G124 a=new G124();
public void run()
{
a.a();
}
public synchronized void a()
{
int i=0;
while(i++<3)
System.out.println("A "+i);
}
public static void main(
String [] args)
{
G124 a=new G124();a.start();
G124 b=new G124();b.start();
}
}
------------------
Muhammad Hussain