Java Comments

Objectives

  • Use Java single line comments
  • Use Java block comments
  • Recognize Javadoc comments

Comments

  • single line comment: use "//"; everything after that on a line is considered a comment
  • block comment: everything between "/*" and "*/" is a comment
  • Javadoc comments: everything between "/**" and "*/" is a comment, and the Javadoc tool can interpret the comments