class A extends
Thread {
public A(Runnable r) {super(r);
run();
}
public void run() {System.out.print("A");}
}
class B implements Runnable {
public B()
{
run();
}
public void run() {System.out.print("B");}
}
class Cero {
public static void main(
String[] args) {
new A(new B()).start();
}
}// why it is printing BAA
// first call should go to super class only
[ May 27, 2005: Message edited by: giribabu rosi ]