hi,
why should it give error? what thing wrong you find in this.
its more of a OOPS concept based question than on Threads..
you are implementing an interface and extending a class..
and you are not implementing run() method, you are overriding run method of
Thread class and moreover if you don't explicitly say implementing Runnable, even then implicitly it implements Runnable.
see the following:
interface AI{
void m1();
}
class AImp implements AI{
public void m1(){}
}
class BImp extends AImp implements AI{
public void m1(){}
}