0
Plz explain the doc comment with example and how it works?
3 Respuestas
+ 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
+ 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
0
Thank you