BAEL-1077 Guide to volatile keyword (#2433)

* review changes

* BAEL-1024 Removed the proxy reference

* BAEL-1024 Renamed methods

* BAEL-1077 Guide to volatile keyword
This commit is contained in:
baljeet20
2017-08-14 22:38:01 +05:30
committed by maibin
parent c39abbf4eb
commit 99eee4df2c
2 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package com.baeldung.concurrent.volatilekeyword;
public class SharedObject {
private volatile int count=0;
public void increamentCount(){
count++;
}
public int getCount(){
return count;
}
}