Java comments

From wikinotes
Revision as of 16:13, 9 February 2019 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

There are 3x types of comments in java.

// inline comment
/* multiline
   comment */

In java, docstrings are written above the item being documented.

/** document comments (docstrings)
 *  @param args    string-array of arguments passed at
 *                 the commandline invocation.
 */
static void main(String args[])