Home » Java Byte toUnsignedLong() Method

Java Byte toUnsignedLong() Method

by Online Tutorials Library

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

You may also like