0
Multilined Comment Vs Documentation Comment ?
what's the difference ?
2 Réponses
+ 1
e.g.
/* this is
a multi-line
comment in
Java*/
/**
@author: MarJan
@param is used to store the sum of to integer
*/
The 2nd one (probably written a bit incorrectly since I haven't used it in a while) is a JavaDoc "comment" which will be used when generating technical documentation of your project and will describe the author and for example variable sum;
notice that JavaDoc comment starts with /** and basic multi-line comment starts with /*, also multi-lined comment won't be displayed in the documentation
0
I see. thanks