Javatpoint Logo
Javatpoint Logo

Java Integer divideUnsigned() Method

The divideUnsigned() is a method of Java Integer class which returns the unsigned quotient of dividing the first argument by the second argument where each argument and the result is interpreted as an unsigned value.

Syntax:

Following is the declaration of divideUnsigned() method:

Parameter:

DataType Parameter Description Required/Optional
int dividend It is an int value which will be divided. Required
int divisor A value which will be doing the dividing process. Required

Returns:

The divideUnsigned() method returns the unsigned quotient of the first argument divided by the second argument.

Exceptions:

NA

Compatibility Version:

Java 1.8 and above

Example 1

Test it Now

Output:

Output quotient: 11

Example 2

Test it Now

Output:

Output quotient: 20

Example 3

Test it Now

Output:

Enter the Divident Value: 566
Enter the Divisor value: 15
Quotient: 37

Example 4

Test it Now

Output:

Divide the user inputs (unsigned integer): 
155
5
-5
The Results are: 
31
0





Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA