In this example we will show you how to implement multi-line comment in Java.
Source Code
package com.beginner.examples;
public class MultilineComment {
public static void main(String[] args) {
/* Comment line 1
Comment line 2 */
System.out.println("Hello World!");
}
}
Output:
Hello World!