```
public class Test8 {
synchronized void f(){
System.out.println("f start ");
try {
TimeUnit.SECONDS.sleep(1);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("f end");
}
public static void main(String[] args) {
new T().f();
}
}
class T extends Test8{
@Override
synchronized void f() {
System.out.println("child f start ");
super.f();
System.out.println("child f end");
}
}
```
**问:可以执行吗?**
可以,子类同步方法调用父类同步方法,锁的都是this对象。