class A {} class B extends A { public final synchronized void test(){} }