answersLogoWhite

0

It is an binary arithmetic operator which returns the remainder of division operation. It can used in both floating-point values and integer values.

opLeft % opRight where, opLeft is the left operand and opRight is the right operand. This expression is equivalent to the expression opLeft - ((int) (opLeft / opRight) * opRight)

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What does the percent mean in Java?

The percent sign in Java is the modulus operator. Modulus is used to find the remainder from a division For example if you did int x = 10 % 6; x would be equal to 4. 10 divided by 6 has a remainder of 4. The modulus operator can be used to determine whether a number is divisible by another among other things.


Explain the role of sizeof operator in java?

There is no sizeOf() operator in Java.


Which operator works like sizeof operator in Java?

Java does not have the sizeOf() operator or any operator that gives an equivalent result.


What is the function of the modulus operator in most languages?

Calculating the modulus of two numbers. Are you surprised now?


Operator overloading is possible in java or not?

Java does not support opperator overloading, so the answer to your question is: none.


The modulus operator percent can be used only with integer operands?

True


What are the restriction that are applied to operator overloading?

Java does not support user defined operator overloading.The operator '+' is overloaded in Java and can be used for adding both numbers and Strings.


Which operator in 'c' takes only integer operands?

modulus (%) and shift (<<, >>) for examples.


What is operator in java?

An operator is a symbol that does something in Java. for ex: "+" is an arithmetic operator that adds two numbers. ">" is a logical operator that checks if one number is greater than the other. There are many different types of operators in Java like Arithmetic, Logical, Relational and Assignment operators


The multiplication operator is represented in Java by what symbol?

In Java, the multiplication operator is represented by the asterisk, "*". This was not invented by Java; most programming languages, as well as programs such as Excel, use the same symbol.


Difference between equals equals and equal in java?

"==" in java is the binary operator which compares two values and gives a boolean result While "=" in java is a assignment operator which assigns a value to a variable.


What The modulus operator percent can be used only with integer operands is true or false?

true