Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 11
The difference between a multi-line comment and // is that a multi-line commentallows a developer to comment out only one line of code. On the other hand, /***/ is known as documentation comment. It can also be written as doc comment and JDK Javadoc uses it to generate documentation.
Source: https://www.quora.com/What-are-the-difference-between-and-comments-in-Java-language