1: public class U9627 { 2: public synchronized void synchronizedMethod() { 3: for (int i=0; i<10; i++) System.out.print(i); 4: } 5: …… 6: } 7: 8: public class Foo extends U9627 { 9: //동기화된 메소드로 정의하지 않았다. 10: public void synchronizedMethod() { 11: for (int i=0; i<20; i++) System.out.print(i); 12: } 13: }