Can anyone help me understand documentation comments? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone help me understand documentation comments?

Sorry I'ma complete beginner!

8th Jun 2017, 7:42 PM
Mi S
Mi S - avatar
1 Answer
+ 2
General comments are simply just what's in the name: comments. You can write anything in it and it'll get skipped when running the code. You can comment things in your code for yourself (reminders to yourself to edit/add something for example) or add comments to help others understand your code! Documentation comments are mainly the same, just that you can add characteristics to it. Check out this site (got a nice explanation!): https://www.tutorialspoint.com/java/java_documentation.htm How to write different comments in Java? // This is a one line comment /* This is a multiple line comment */ /** This is a documentation comment */
8th Jun 2017, 7:57 PM
Maart
Maart - avatar