/* related posts with thumb nails */


Comment is a non-executable statement in ‘java’. When programmer includes comments, the program can be easily understandable. These comments must be enclosed in ‘/*’ and ‘*/’ for multi-line commenting. We can also write ‘//” for single line commenting. Comments explain why and what of classes and how of algorithms. This would greatly help in maintaining the program. Java uses a new style of comment /**....*/ known as documentation comment. This form of comment is used for generating documentation automatically.

Related Topics:


Post a Comment