Java AtomicLong get() Method

The get() method of java AtomicLong class returns the value of an AtomicLong instance.

Syntax

Parameters

NA

Return value

The current value.

Example 1

Test it Now

Output:

0

Example 2

Test it Now

Output:

7

Example 3

Test it Now

Output:

-14

Next TopicJava AtomicLong




Latest Courses