java - Why doesn't putting a random http link in code cause a compilation error? -
this question has answer here:
for example:
public class mylink{ public static void main(string[] args) { http://google.com system.out.println("and works!"); } } this code compile without problems. why?
in java http: label can use in loops or pther statements, whereas //google.com single-line comment.
Comments
Post a Comment