Home »
MCQs »
Scala MCQs
The final keyword in Scala is used to –
48. The final keyword in Scala is used to -
- Define a variable whose value cannot be further changed
- Create a new variable
- Special inaccessible value in Scala
- None of these
Answer: A) Define a variable whose value cannot be further changed
Explanation:
In Scala, Final is a keyword and used to impose restriction on super class or parent class through various ways.