Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: removed exception about labels

...

Code Block
bgColor#ccccff
for(int i = 0; i < 10; i++) { }
for(int i = 0; i < 20; i++) { }

Wiki Markup
*EX2:* It is permissible to declare a label with the same name as another variable in the same scope. This is because there is no obscuration in this case \[[JLS 05|AA. Java References#JLS 05]\].

Risk Assessment

Reusing names leads to code that is harder to read and maintain and may result in security weaknesses.

...