Home »
MCQs »
Scala MCQs
Literals in Scala are ___
24. Literals in Scala are ___.
- Name of the variables
- A literal is a value that can be assigned to a variable
- The type of the values
- None of these
Answer: B) A literal is a value that can be assigned to a variable
Explanation:
Any constant value which can be assigned to the variable is called as literal