Tuesday, November 23, 2010

CoolTuts - Java - Comments

Java programming supports three kinds of comments
  1. //
  2. compiler ignores everything from // to the end of the line.
  3. /* text*/
  4. compiler ignores everything from /* to */
  5. /** documentation */
  6. compiler ignores this kind of comment, just like it ignores comments that use /8 and *// The JDK javadoc tool uses doc comments when preparing automatically generated documentation..

No comments:

Post a Comment