How to Use Java Comments //This Is Comments

 How to Use Java Comments  

Java provides three types of comments to document a program and are ignored by the compiler:

  • A single-line comment: // ... this is comments 

  • A multiple-line comment: /* ... */

  • A documentation (Javadoc) comment: /** ... */



This is Single-line Comment after end of line  Or Any Were
System.out.println("Hello World This is\b ezcod.blogspot.com "); // This line Printed on Screen


Multiple-line Comment

A multiple-line comment can span several lines. 

/*
    All
    Thes
    are
     comments
*/

Documentation Comment
/**
 *  This is Document Comments .
 *  @author ezcod.blogspot.com.
 *  @version 4.5
 */


Download Code Here

Post a Comment

Previous Post Next Post

Featured Post