aspose file tools*
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Comments // " Watch "Comments // " New topic
Author

Comments //

Chatura Dilan
Greenhorn

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

Amazing! Compiler does not ignore this



I do not know why?
Arno Reper
Ranch Hand

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

arno


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

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
Deprecated Methods
Cyclomatic Complexity
Assert
how to use /** */ comment type