Comments provide better code readability. There are 3 types of comments:

Single line comment
Java Code:
// this is a comment
Multiple lines comment
Java Code:
/* this is a comment 
this is a comment 
this is a comment 
*/

Javadoc comment

Java Code:
/**
* @param a the a to set
*/