VOOZH about

URL: https://www.geeksforgeeks.org/java/atomicboolean-get-method-in-java-with-examples/

⇱ AtomicBoolean get() method in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

AtomicBoolean get() method in Java with Examples

Last Updated : 27 Feb, 2019
The java.util.concurrent.atomic.AtomicBoolean.get() is an inbuilt method in java which returns the current value which is of date-type boolean. Syntax:
public final boolean get()
Parameters: The function does not accepts any parameter. Return Value: The function returns the current value Below programs illustrate the above function: Program 1:
Output:
current value: false
Program 2:
Comment