0

Plz explain the doc comment with example and how it works?

5th Oct 2016, 9:36 AM
Srinath G
Srinath G - avatar
3 Respostas
+ 1
Program comment is part of the program code that will not be executed during program compilation process. This means that the presence of program comment will not affect the course of the program. Program comment is usually used to write information about the program code, for example: creator, version, program description, and others. Program comment also frequently written to write the flow or algorithm of the program. Example of program comment in http://javabasictoadvanced.blogspot.co.id/2016/02/java-basic-elements.html
5th Oct 2016, 10:18 AM
Aula Muttaqin
Aula Muttaqin - avatar
+ 1
like aula said a doc comment is a code line or more that explains what a codeline or a class does. it can also be used to mark bugs or to take some codelines out of the program to test if that codeline is corrupted or if there is a mistake in it. i usually take the “//comment“ comments but sometimes i use /*comment goes on*/ comments hope i could help
5th Oct 2016, 2:25 PM
the skrub
the skrub - avatar
0
Thank you
6th Oct 2016, 12:35 PM
Srinath G
Srinath G - avatar