+ 1

what's the work and use of document comment?

what's the difference between it and multi line comment

1st Sep 2016, 6:19 AM
Ishan Agrawal
Ishan Agrawal - avatar
3 Answers
+ 3
Multi line comments can be written/viewable in source code whereas documentation comments are written in source code and viewable in Javadoc file. advantage of this is no need of checking the source code again
6th Feb 2017, 3:01 AM
Kommoju Sunil Kumar
Kommoju Sunil Kumar - avatar
0
Never really heard of a document comment before. PHP and many other languages only have single line (//statement) and multi line (/* statement */) comments.
1st Sep 2016, 7:41 AM
Thomas Avent
Thomas Avent - avatar
0
With the /**...*/ comment you can create the documentation for your code in just one click, and make your code more easy to understand
1st Sep 2016, 9:29 AM
Giacomo Gattoni
Giacomo Gattoni - avatar