+ 6
What is the difference between multi-line comment /* */ and documentation comment /** */ in Java?
/* this is a multi-line comment */ /** this is an important multi-line comment */
5 Answers
+ 3
Comments like /** .. */ are for javadoc tool (included in Java installation) which automatic generate html documentation for your codes with this comments as headers for next class or methods.
like
https://pasteboard.co/IsBtgbe.png
or
https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/lang/String.html
+ 3
Standard multi-line comments won't show up in Javadoc.
+ 2
About static method to java?
+ 1
Use // text when you want to commenta single line of code. Use /* text */when you want to comment multiple lines of code. Use /** documentation */ when you would want to add some info about the program that can be used for automatic generation of program documentation.
+ 1
multi-line is to use multiple lines. And documentation comment is to attach some file by the comment.