·  JAVA – Syntax – Terms – Comments

 

- Info:

  - This tutorial shows how to write comments in Java.

  - Java support both single line and multi line (block) comments.

 

- Example:

  - Create JAVA Console Application Test.java

 

    Test.java

    public class Test {

      public static void main(String[] args) {  

        /* Multi line comment.

           Block comment.      */

        System.out.println("Hello World");  //Single line comment.

      }     

    }