Home »
MCQs »
Scala MCQs
What are expressions in Scala?
57. What are expressions in Scala?
- Line of code that compiles to a value
- Code block without semicolon
- Line of code containing = sign
- None of these
Answer: A) Line of code that compiles to a value
Explanation:
The expressions are the line of code that compiles to a value.