Why this code compiles in java? -


this question has answer here:

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

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -