Code labels in Java -
here can find @ initial phases java provided goto
instruction. wisely, instruction not longer implemented. nevertheless, discovered few minutes ago in other question, labels still exist.
int x; letsassign: x = 3;
i wonder why still there. other uses labels have apart goto label
?
it sportly multiple loopings:
outer: (;;) { while (true) { if (brr) { break outer; } } roo(); }
for break , continue.
java designed clean things up; after c++. 1 did not want risk outcries of "i cannot longer efficiently."
java labels goto
No comments:
Post a Comment