Why this code compiles in java? -
this question has answer here:
- how use labels in java code? 2 answers
i can see below code compiles in java not understand reason?
public class test { @suppresswarnings("unused") public static void main(string[] args) { abc:system.out.println(9); } }
the line in main
labelled statement.
these labels aren't use in isolation, can used break
, continue
statements.
Comments
Post a Comment