The modulus operator(%) can be used only with integer operands.True/False
Answers
Answered by
20
Answer:
true
Explanation:
The modulus operator (%) in Java can be used only with variables of integer type. The modulus operator (%) may be used with floating-point as well as integer types. It returns the remainder of a division operation, e.g., 10 % 6 will return 4.
hope it helps
pls mark as brainliest.
Answered by
4
True is the correct answer to the given question
Explanation:
- The modulus operator can be used to find the reminder between the two Operands .
- The modulus Operator is comes in the arithmetic operator category .
For example :
int a=7;
int c;
c=a%2
- it gives reminder i.e 1 .The reminder never be the decimal value thats why the following statement is true .
Learn More :
https://brainly.in/question/6629425
Similar questions