Home »
MCQs »
Scala MCQs
The correct syntax for creating Single line comments in Scala is –
9. The correct syntax for creating Single line comments in Scala is,
- //
- <!-- -- >
- /* */
- %%
Answer: A) //
Explanation:
// is used to create a single line comment in Scala. /*...*/ is used to create multiline comments in Scala.