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