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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The two types of comments are, this:
and this:
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.