what is expression explain the precedence of operators with suitable example
Answers
Answered by
1
Answer:
Operator precedence determines the grouping of terms in an expression and decides how an expression is evaluated. Certain operators have higher precedence than others; for example, the multiplication operator has a higher precedence than the addition operator.
Answered by
0
Operator precedence determines the order in which the operators in an expression are evaluated. ... In Java, the precedence of * is higher than that of - . Hence, the multiplication is performed before subtraction, and the value of myInt will be 4.
Similar questions