Created
June 24, 2019 18:13
-
-
Save akshanshjain95/85c7089f7e760c1b30f04da7c88f337b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.atomic.AtomicInteger; | |
public class Atomicity { | |
AtomicInteger i; | |
public void incrementNumber() { | |
i.incrementAndGet(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment