Arrange in ascending order in Java Today I have an exam so plzzz i need help
Answers & Comments
nitish8089
In Java precedence of arithmetic operator is like:: 1.*,/ both have same precedence so Java acquire the left hand rule it means start calculation from left hand side 2. +,- as explain in example 1*2+3/4-6 so 1*2=2 3/4=0 integer division now 2+0-6=-4
Answers & Comments
1.*,/
both have same precedence so Java acquire the left hand rule it means start calculation from left hand side
2. +,-
as explain in example
1*2+3/4-6
so
1*2=2
3/4=0 integer division
now
2+0-6=-4