Card 09/ 09

RecapDifficulty: Intermediate1 min

Which Operator Asked Which Question

Five things this topic established, and where each one was.

What the topic established, and which card it was on
The thingWhere
The operand types choose what a symbol doesOne Symbol, Several Jobs
= assigns, == asks about identity, .equals asks about contentsAssigning, Comparing Identity, and Comparing Contents
&& and || stop early, which is what makes a null guard workShort-Circuiting, and the Null Check That Leans On It
*, / and % bind tighter than + and -Why 5 + 3 * 2 % 4 Is Not Read Left to Right
i++ produces the old value; ++i produces the new oneWhy j Is 5 After int j = i++

When an expression surprises you, look at the types and the grouping before you look at the operator. Both of those were decided by the compiler, and neither of them is visible in the line you read.