We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26533ee commit 2da4989Copy full SHA for 2da4989
MD/concurrent/volatile.md
@@ -0,0 +1,2 @@
1
+# 你应该知道的 volatile
2
+
src/main/java/com/crossoverjie/basic/StringTest.java
@@ -0,0 +1,23 @@
+package com.crossoverjie.basic;
3
+import java.lang.reflect.Field;
4
5
+/**
6
+ * Function:
7
+ *
8
+ * @author crossoverJie
9
+ * Date: 08/03/2018 13:56
10
+ * @since JDK 1.8
11
+ */
12
+public class StringTest {
13
14
+ public static void main(String[] args) throws NoSuchFieldException {
15
+ String a = "123";
16
+ System.out.println("a=" + a);
17
18
+ a = "456";
19
20
21
+ Field value = a.getClass().getField("value");
22
+ }
23
+}
0 commit comments