Computer Applications
What is the result of evaluating the following expression?
(1 + 2 * 2) / 2 + 2
Values & Data Types Java
58 Likes
Answer
(1 + 2 * 2) / 2 + 2
⇒ (1 + 4) / 2 + 2
⇒ (5) / 2 + 2
⇒ 2 + 2
⇒ 4
Answered By
35 Likes
Related Questions
State whether the following statement is True or False :
The modifier final can be applied to a variable declaration to ensure that the value stored in the variable cannot be changed after the variable has been initialised.
What are escape sequences in Java? Give three examples.
What is a token in Java? Name the tokens available in Java.
Why can't you use a keyword as a variable name?