I found a few weird constructs in Java that the compiler allows, but for which I'm not sure what could be the practical use.
1) if statement:
if((score=score+10) > 110); //No if body
while eg: switch(++i);
is not
2) for loop:
for(;;); //No loop body
Are there practical, valid circumstances to use the preceding code?