Literals in Scala are ___

24. Literals in Scala are ___.

  1. Name of the variables
  2. A literal is a value that can be assigned to a variable
  3. The type of the values
  4. 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

Comments and Discussions!

Load comments ↻






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