The scala comments are statements which are not executed by the compiler or interpreter. The comments can be used to provide information or explanation about the variable, method, class or any statement. It can also be used to hide program code details.
In scala, there are three types of comments
Scala Single Line Comment Example
Single line comment is used to comment single line of code.
Scala Multiline Comment
Multiline comment is used to comment multiple lines of code in the program.
Scala Documentation Comment Example