Scala Tutorial - Scala Comments








Scala comments are much like Java and C++ comments.

Multiline comments start with /* and ended with */.

/*
    This is a multiline comment:
*/

A single-line comment is started with // and continues to the end of the line:

// This is a single line comment

In Scala, we can nest multiline comments:

/*
This is an outer comment
/* And this comment
is nested
*/
Outer comment
*/