public class MainClass { public static void main(String[] argv) { } public void m() { synchronized (this) { System.out.println("synchronized"); } } }