Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.atomic.AtomicLong; public class AtomicLongGetExample2 { public static void main (String [] args) { AtomicLong atomiclong = new AtomicLong(7); //Gets the Initialized value Long result = atomiclong.get(); //Prints the Initialized value System.out.println(result); } }
Output