Comments are very important to a program. They help the user in cracking the logic of a program easily and also in re-usability of the code.
Comments are any text to the right of the // symbol. A comment does not have any effect on the behavior of the program.
Comments are implemented in two ways:
- Single line (//)
- Multi line (/**/).