public class HelloWorld { public static void main (String args[]){ System.out.println ("Hello "); http://www.google.com System.out.println ("World!"); } }
The above code is just compiling and executing fine. Why the compiler is not reporting any error?
The http:
is a Label Statement. See here also.
The //www.google.com
portion is then interpreted as a //
comment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With