Java multi-line comments

Java Programming Java8Object Oriented Programming

/* is used for multi-line comments.

Example

Live Demo

public class MyFirstJavaProgram {
   public static void main(String[] args) {
      /* This is an example of multi line comment. */
      System.out.println("Hello World");
   }
}
raja
Published on 23-Apr-2018 07:35:18
Advertisements