A method <code>boolean isReady()</code> is called inside an <code>if</code>. Which is correct?
- Acheck_circle
Both work; first is idiomatic
- B
if (isReady())
- C
if (isReady() == true)
- D
Neither
Explanation
Both compile and behave equivalently; first form is preferred.