What's the difference between comments and documentation comment? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What's the difference between comments and documentation comment?

21st Sep 2016, 7:14 AM
Harshav Vardhan
Harshav Vardhan - avatar
2 Réponses
+ 1
I don't understand this. please how do they differ in the code? do they appear different after compiling? or do they do the same thing?
12th Oct 2016, 6:30 AM
Raymond Crump Rukevwe
Raymond Crump Rukevwe - avatar
- 1
Normal code comments used in java looks something like this: // To comment a single line of code /* To comment multiple lines of code */ whereas, Java documentation comments be like: /** This is a Java documentation comment */
4th Oct 2016, 5:53 PM
Bharathi