Java AtomicLong toString() Method

The toString() method of Java AtomicLong class returns the String representation of the current value.

Syntax

Overrides

toString() method of class Object

Returns

The String representation of the current value

Example 1

Test it Now

Output:

0

Example 2

Test it Now

Output:

156789

Example 3

Test it Now

Output:

-123456

Example 4

Test it Now

Output:

-19




Latest Courses