The final keyword in Scala is used to –

48. The final keyword in Scala is used to -

  1. Define a variable whose value cannot be further changed
  2. Create a new variable
  3. Special inaccessible value in Scala
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.