Javatpoint Logo
Javatpoint Logo

Java Byte toUnsignedLong() method

The toUnsignedLong() method of Java Byte class converts the specified argument to long by an unsigned conversion.

Syntax:

Parameters:

The parameter 'x' represents the value to convert to an unsigned long.

Return Value

This method returns a long value converted from byte via unsigned conversion.

Example 1

Test it Now

Output:

Unsigned long value for -3 : 253253

Example 2

Test it Now

Output:

Unsigned Long value for -128 : 128128

Example 3

Test it Now

Output:

Unsigned Long value for 127 : 127127

Next TopicJava Byte





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA