Computer Applications
Write one difference between / and % operator.
Java Operators
ICSE 2017
15 Likes
Answer
/ operator computes the quotient whereas % operator computes the remainder.
Answered By
9 Likes
Related Questions
A student needs to calculate the average of three numbers
x
,y
, andz
. Which is the correct Java expression for this calculation?Write Java expression for:
Identify the operator that gets the highest precedence while evaluating the given expression:
a + b % c * d - e
- +
- %
- -
- *
If
x = 5
andy = 4
, what will be the output of the following code?x += ++y - x-- + y++; System.out.println("x = " + x); System.out.println("y = " + y);