Difference between green and blue comments in eclipse
eclipse, java
Solution
The two types of comments are, this:
/**
* comment goes here (notice the extra '*' in previous line)
*/
and this:
/*
* comment goes here (notice the extra '*' is not present in previous line)
*/
These two commenting style have different colors. First one gets blue color and second one gets green color.
The first style is a Javadoc comment, which can be used to generate various documentation formats. Eclipse will use these to generate tooltips and autocomplete documentation for the documented item.
For more detail see the documentation.
Problem
I've seen two types of comments in eclipse. One is with green color and the other one is with blue color. What is the difference between the two? Which is used for functions and which for classes and other variables?