Which Scala keyword is used to initialize a variable?

30. Which Scala keyword is used to initialize a variable?

  1. int
  2. var
  3. value
  4. None

Answer: B) var

Explanation:

Scala variables are created using the var keyword.

Comments and Discussions!

Load comments ↻






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