+ 1
What is documentation comments
3 Respostas
+ 1
/*Its when you want to put a comment inside your code explaining what its doing like this*/
String x = "your comment wont affect this";
System.out.println(x);
// for single lines
/* for
two line*/
+ 1
Documentation comment is used to generate documentation by javadoc tool.
/**
* This is documentation comment example of some method. This text describes method.
*@param parameter - here is describe of parameter
*@return - here is describe of return type of method
*/
0
/*Its when you want to put a comment inside your code explaining what its doing like this*/
String x = "your comment wont affect this";
System.out.println(x);
// for single lines
/* for
two line*/
These examples are only multi-line and single-line comments. They are not documentation comments.