single line comment in java code example

Example 1: java comments

//Single line
System.out.println("Hello world"/*+"This is code commented out inline."*/); //You can also put comments at the end
/*
Multi
Line
comment
*/

Example 2: comment in java

//This is single line comment  

/* 
This is  
multi line comment 
*/

Example 3: make a commet in java

// Demo types of comments

/* This shows
   that the comment
   can be muilti line */
System.out.println("Hello"); // Inline comment
// This is a single line comment