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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -