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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -