Difference b/w multi line and documentation commend? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Difference b/w multi line and documentation commend?

5th Dec 2019, 5:18 AM
Vinoth
3 Answers
+ 2
Multi line comments : /*function for Array sorting descending order*/ int sortArrayd() { .... } /*So simply it is for understanding purpose*/ Vinoth Documentation comments : are used to create documentation API. for that you need use javadoc tool. ex: /** Array class provides accending sort, descending sort, print methods */ Ex: javadoc program.java It will create a html file in current directory. open that file. you can see doctype API for that document In java. edit: There are 3 types of comments 1)single 2) multi 3) document comments...
5th Dec 2019, 8:03 AM
Jayakrishna 🇮🇳
0
There isn't any difference between multi line comment and documentation comment. // Single line comment /* Multi Line Comment */ Edit: I'm wrong I guess so kindly consider reading what Jaya krishna has mentioned.
5th Dec 2019, 6:22 AM
Avinesh
Avinesh - avatar
0
What about documentation commend?
5th Dec 2019, 7:07 AM
Vinoth