The lines to watch here are lines 9 & 10. Line 9 features the non-shortcut version of the
OR operator so both of its operands will be evaluated and therefore
methodB(4) is executed.
However line 10 has the shortcut version of the OR operator and if the 1st of its operands evaluates to true (which in this case is true), then the 2nd operand isn't evaluated, so methodB(8) never gets called.
The loop is only executed once, b is initialized to false and is assigned true on line 9. Thus j = 4.