+ 1
Difference b/w multi line and documentation commend?
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...
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.
0
What about documentation commend?