KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SynchTestNested


1 public class SynchTestNested {
2         
3     public static void main(String JavaDoc[] args) {
4         SynchTestNested t = new SynchTestNested();
5             synchronized(t) {
6                 synchronized(t) {
7                     System.out.println("made it!");
8                 }
9             }
10     }
11 }
12
Popular Tags