Java Comments

Introduction

There are three types of comments defined by Java.

  • single-line: marked by //
  • multiple line: marked by /* and */
  • documentation comment: marked by / document here */

The documentation comment can produce an HTML file that documents your program.

The documentation comment begins with a / and ends with a */.




PreviousNext

Related