wood burning stoves*
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 Android Security Essentials Live Lessons 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: http://aspose.com/file-tools
subject: Comments //
Similar Threads
Ignoring white space
Cyclomatic Complexity
Deprecated Methods
how to use /** */ comment type