In terms of grammar, none of the above ways of specifying comments is acceptable. However, to make it easier for other people to understand your code, I would suggest following some basic coding styles.
For example, the Oracle coding style is one of the popular coding styles for Java.
There are two types of comments in your coding style. The first is an implementation comment, which uses / * * / for block comments and // for comments on a single line.
The second type is a documentation comment, which usually uses the comments / ** * / style and appears only before class, function, and variable definitions. For instance:
public class someClass { public someClass(int someParam) { ... } ... }
source share