Java AtomicLong intValue() Method

The intValue() method of java AtomicLong class returns the current value of this AtomicLong as an int after a narrowing primitive conversion.

Syntax

Parameters

the numeric value represented by this object after conversion to type int.

Example 1

Test it Now

Output:

0

Example 2

Test it Now

Output:

98383

Example 3

Test it Now

Output:

-65476

Example 4

Test it Now

Output:

-9




Latest Courses