...
Code Block | ||
---|---|---|
| ||
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.
...