Java AtomicLong longValue() Method

The longValue() method of java AtomicLong class Returns the value of the specified number as a long.

Syntax

Returns

the numeric value represented by this object after conversion to type long

Example 1

Test it Now

Output:

0

Example 2

Test it Now

Output:

2000

Example 3

Test it Now

Output:

-123456

Example 4

Test it Now

Output:

-19




Latest Courses