...
Code Block | ||
---|---|---|
| ||
class Test { static long i = 0; static void one(long j) { i++ = j; } static void two() { System.out.println("i =" + i); } } |
...
Code Block | ||
---|---|---|
| ||
class Test { static long i = 0; static void one(long j) { i++ = j; } static void two() { System.out.println("i =" + i); } } |
...
Code Block | ||
---|---|---|
| ||
class Test { static long i = 0; static void synchronized one(long j) { i++ = j; } static synchronized void two() { System.out.println("i =" + i); } } |
...