+ 1

What is documentation comments

4th Jul 2017, 4:41 PM
Mihir Hattangdi
Mihir Hattangdi - avatar
3 Answers
+ 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*/
4th Jul 2017, 6:42 PM
D_Stark
D_Stark - avatar
+ 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 */
4th Jul 2017, 7:54 PM
Pavel VĂĄclavĂ­k
Pavel VĂĄclavĂ­k - avatar
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.
5th Jul 2017, 5:19 AM
Pavel VĂĄclavĂ­k
Pavel VĂĄclavĂ­k - avatar