Java comments: Difference between revisions

From wikinotes
No edit summary
 
(No difference)

Latest revision as of 16:13, 9 February 2019

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[])