I noticed that in Eclipse when I use
/*
* My Comment
*/
public class myClass {
}
“My Comment” does not associate with the class but
/**
* My Comment
*/
public class myClass {
}
“My Comment” does
Similarly
/** myComment */
public static final String MY_VARIABLE = "testing";
also associates with the javadoc.
Is this a Eclipse thing or part of the java documenting system.
Should I always use /** as opposed to /* ?
1 Answer