What is modulus operator % in java ?
Answer : % is arithmatic modulus operator. When used it returns the remainder of the division operation. It can be applied to integer types and floating-point types as well. Please see example below of modulus (%) operator:
List of arithmetic operators:
|Subtraction (also unary minus)||–|