Java Comments

Comments in Java

Comments-out everything until a line break

  • Useful for commenting out a section of code
  • Cannot be nested within other multi-line comments

  • Similar to multi-line comments but used to document Java code (classes, methods, fields)
  • Extracted using javadoc command-line utility