JVM internals for Kotlin and Android developers · check

Know Changing shared state already?

One question for each of the 1 puzzles in this module. A right answer marks that puzzle as passed, so you can jump ahead. A wrong one tells you which puzzle to start with. Nothing is sent anywhere: it's saved in this browser.

Puzzle 4: How can two increments produce eight?

B reads only after A writes eight. What does B calculate?

Right. B reads eight and adds one.

Not quite. B starts from the value A just stored. Learn it in puzzle 4 →

Back to the overview →