Originally posted by Roger Chung-Wee:
Private is more restrictive than default.
Originally posted by Rory French:
No, this code compiles just fine. If a loop statement such as for does not have an opening brace, then the next statement, and only the next statement, is evaluated as part of that loop. In this particular question, the next statement is another for loop.
I think you do maybe have a point here. The authors did put the words "default access" in a different font to distinguish it from the access modifiers, but perhaps the word "modifier" should have been omitted from the question, especially since the anwer was not a modifier.