java comment

  • Java Comment

    Java Supports 3 types of comments in coding

    1. Single-line comment.
    2. Multi-line comment.
    3. Documentation comment.

    PFB the detailed description of the types with example.

    Single-line comment

    //Line1  - Single line comment 
    Eclipse IDE key-board shortcut : Keep the cursor in the exact line and press ctrl+/