The toUnsignedLong() method of Java Integer class returns a long value by simply converting the given argument to long after an unsigned conversion.

Syntax

public static long toUnsignedLong (int  x)

Parameters

The parameter ‘x’ represents an integer to be converted to an unsigned long.

Return Value

This method returns the long value after an unsigned conversion.

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This