+ 2

What is the importance of documentation comment in java

I don't understand what is the difference between the documentation comment and the multi line comment

30th Jun 2019, 9:39 PM
Ahmed Mostafa
Ahmed Mostafa - avatar
2 Answers
+ 5
They’re generally good for keeping track of a complex program. I found this out the hard way: I wrote a multi-thousand line program with no documentation and came back to it a few months later, I had no idea what half of my code was responsible for. It took me hours to get the gist of it whereas a couple of single-line comments would have saved me all that time.
30th Jun 2019, 9:57 PM
Jake
Jake - avatar
+ 1
I mean what is the difference between the documentation comment and the multi line comment
1st Jul 2019, 8:14 AM
Ahmed Mostafa
Ahmed Mostafa - avatar