102
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
Output:
Unsigned long value for -3 : 253253
Example 2
Output:
Unsigned Long value for -128 : 128128
Example 3
Output:
Unsigned Long value for 127 : 127127
Next TopicJava Byte