java 中 静态方法不能调用非静态方法,但我写了一程序怎么可以??????

public class Add {
public static void main(String[] args) {
B b = new B();
Thread thread = new Thread(b);
thread.start();
}
public static void a(B d) {
d.b();
}
}
class B implements Runnable {
public void b() {
int j = 0;
System.out.println(j);
}
@Override
public void run() {
Add.a(this);
}
}

你理解错了 ,是指直接调用 ,而不是通过对象调用方法 ,静态方法无法直接调用这个类的非静态方法,但是可以通过对象调用