Skip to content

Commit 2dde883

Browse files
committed
实例
1 parent b6ad158 commit 2dde883

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.crossoverjie.synchronize;
2+
3+
/**
4+
* Function:Synchronize 演示
5+
*
6+
* @author crossoverJie
7+
* Date: 02/01/2018 13:27
8+
* @since JDK 1.8
9+
*/
10+
public class Synchronize {
11+
12+
public static void main(String[] args) {
13+
synchronized (Synchronize.class){
14+
System.out.println("Synchronize");
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)