When to return remainder of Divison in Java?

However, this is incorrect for Java as Java will return a negative value if the left operand a is negative. % operator will return the remainder of the Integer division. What modules actually does under the hood ?
For More Information Please Refer:


You May Also Like to Read: