Why are Java comments different colors in Eclipse?

Block comments that start with in java are javadoc comments. Eclipse colors them differently to set them apart from normal comments Here's a guide that discusses how to write documentation comments for java: oracle.com/technetwork/java/javase/docum... When you hover over a class/method/field that has a javadoc comment in Eclipse, you'll see a little documentation popup that contains a formatted version of the javadoc comment for that class/method/field You can also use the javadoc command-line tool to generate HTML documentation for your packages and classes. When you do this, the tool uses the javadoc comments in your source code to build the documentation.

Block comments that start with /** in java are javadoc comments. Eclipse colors them differently to set them apart from normal comments. Here's a guide that discusses how to write documentation comments for java: oracle.com/technetwork/java/javase/docum... When you hover over a class/method/field that has a javadoc comment in Eclipse, you'll see a little documentation popup that contains a formatted version of the javadoc comment for that class/method/field.

You can also use the javadoc command-line tool to generate HTML documentation for your packages and classes. When you do this, the tool uses the javadoc comments in your source code to build the documentation.

Very interesting... that should make my documentation easier! – Joshc1107 Mar 24 at 2:54.

Eclipse comment defaults: // and /* .. */ are standard comments and show up in one color, green /** ...... **/ are javadoc comments and show up in a different color, blue.

Nothing big reason behind this, // means Single line comment /** **/ means JavaDoc comments Just to differtitte between them, the two different colors are given.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions