What is the difference between this
/**
* comment goes here (notice the extra '*' in previous line)
*/
and this?
/*
* comment goes here (notice the extra '*' is not present in previous line)
*/
Because I've noticed that in eclipse these two commenting style have different colors. Firsts one gets blue color and second one gets green color.
Is there any difference between these two commenting styles?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With