hi,anybody please provide the solution as why the below given program is giving compile time errors
public class A45 extends
Thread {
public void run()
{
synchronized (this)
{
try
{
wait(5000);
}
catch (InterruptedException ie)
{
}
}
}
public static void main(
String[] args)
{
A45 a1 = new A45();
long startTime = System.currentTimeMillis();
a1.start();
System.out.print(System.currentTimeMillis() - startTime + ",");
try
{
a1.join(6000);
}
catch (InterruptedException ie)
{
}
System.out.print(System.currentTimeMillis()-startTime);
}
}
}