Bitwise AND (&) expression in Java

后端 未结 2 1183
自闭症患者
自闭症患者 2021-01-24 19:17

I am debugging code that has in it expr1 & expr2 where expr1 has a side effect that affects expr2 evaluation result. I suspect that

2条回答
  •  无人共我
    2021-01-24 19:33

    JLS 3rd edition section 15.7 talks about evaluation order from left to right but asks not to rely on it crucially (except for short circuit ones)

提交回复
热议问题