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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -