Check out example codes for "java comments". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

//This is a comment. It will only span one line

/*This is a 
multi-line comment*/

Code Example 3

// 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

Code Example 4

//This is single line comment  

/* 
This is  
multi line comment 
*/

Learn ReactJs, React Native from akashmittal.com