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

Code Example 1

//This is single line comment  

This is  
multi line comment 

Code Example 2

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

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

/*This is a 
multi-line comment*/

Learn ReactJs, React Native from