Operators(Java Program ) Questions and Answers
Explanation:-
Answer: Option B. -> 2 2.5The modulus operator, % returns the remainder of a division operation. It can be applied on floating-point types as well as integer types. (This differs from C/C++, in which the % can only be applied on integer types.)
Explanation:-
Answer: Option B. -> 50x *= 3 + 7; is same as x = x * (3 +7) = 5 * (10) = 50 because expression on the right side is always placed inside parentheses.
Explanation:-
Answer: Option A. -> Value is 67 18 String 13If the left hand operand is not a String then + operator treat as plus BUT if the left hand operand is a String then + perform String concatenation.