Multilined Comment Vs Documentation Comment ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multilined Comment Vs Documentation Comment ?

what's the difference ?

20th Aug 2018, 3:28 AM
Time Loop
Time Loop - avatar
2 Answers
+ 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
20th Aug 2018, 7:11 AM
MarJan
MarJan - avatar
0
I see. thanks
20th Aug 2018, 2:53 PM
Time Loop
Time Loop - avatar