+ 1
what's the work and use of document comment?
what's the difference between it and multi line comment
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
0
Never really heard of a document comment before. PHP and many other languages only have single line (//statement) and multi line (/* statement */) comments.
0
With the /**...*/ comment you can create the documentation for your code in just one click, and make your code more easy to understand