Javatpoint Logo
Javatpoint Logo

Java Byte toUnsignedInt() method

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

Syntax:

Parameters:

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

Return Value

This method returns an int value converted from byte via unsigned conversion.

Example 1

Test it Now

Output:

Unsigned Int value for -34 : 222222

Example 2

Test it Now

Output:

Unsigned Int value for 127 : 127127

Example 3

Test it Now

Output:

Unsigned Int value for -128 : 128128

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