Recents in Beach

Java Comments

 Comments can be used to explain java code, and to make it more readable. It can also be used to present execution when testing alternative code.

Single-line Comments

    single-line comments start with two forward slashes(//).

    any text between // and the end of the line is ignored y java.

    This example used a single-line comment before s line of code:

    // this is a comment

    System.out.println("Hello Guys, Welcome to my Blog")

    

    You can also print:

    System.out.println("Hello Guys, Welcome to my Blog")    // this is a comment


Java Multi-line Comments

    Multi-line comments start with /* and end with */

    Any text between /* and */ will be ignored by java.

    /* This blog is create for the learning purposed

    you also read notes and create great future */

     System.out.println("Hello Guys, Welcome to my Blog") 

Post a Comment

0 Comments