| Author |
Why this code compiles fine?
|
Hemang Thanki
Greenhorn
Joined: Jan 24, 2005
Posts: 18
|
|
public class Curiosity { public static void main (String[]args){ System.out.println ("A curiosity"); http: //www.something.com/howto.html; System.out.println ("compile and run Ok!"); } } if we take // as comments, what about "http:" ? why does not compiler throw an error that No symbol found http: ? Oh great i got it now... But let it be with this forum. This question should be in SCJP. It takes http: as the label name...and rest is comment. Gr8... Oh I Love you Java...ummmah Hemz
|
 |
Petr Blahos
Ranch Hand
Joined: Apr 28, 2004
Posts: 131
|
|
is a label. P.
|
Get a better web browser:<br /><a href="http://www.mozilla.org/products/firefox/switch.html" target="_blank" rel="nofollow">http://www.mozilla.org/products/firefox/switch.html</a>
|
 |
 |
|
|
subject: Why this code compiles fine?
|
|
|