This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Comments // Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Comments // " Watch "Comments // " New topic

Comments //

Chatura Dilan

Joined: Apr 22, 2006
Posts: 16
I have heard that I can put anything after the comments // and compiler will ignore it.

Amazing! Compiler does not ignore this

I do not know why?
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
its because // \u000A is like // ( \u000A ) and \u000A is the unicode value for 'return carriage' so the compiler understand this


The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Chatura Dilan

Joined: Apr 22, 2006
Posts: 16
OK Thanks
I agree. Here's the link:
subject: Comments //
It's not a secret anymore!