Comments statement in Java


Comments statements in Java:


Comment statement in Java Programming some time it is difficult to user to understand the logic applied in a program particularly when other person has developed it. In such cases, the programmer keeps mentioning the purpose and action being taken in different steps this can be made  possible only by applying comment statement in the program there are three way to give a comment in java programming.Howe.user are expected to give comments wherever necessary while writing java Programming.
1. //                              : used for single-line comment
2. /* comments to be written */    :used for  multi-line comment
3. /** documenting comment */      :used for a brief document

Comments are closed.