Why does Java compile this equation: 78 / 10 * 10 + 10 - 78 equal to 2?

后端 未结 0 754
南方客
南方客 2020-12-04 05:26

I\'ve been trying to understand java operator precedence but I can\'t wrap my head around this equation someone has given to me. By adding parentheses myself I get (((78 / 1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题