Logical operators in Scala are used to –

43. Logical operators in Scala are used to -

  1. Perform a comparison of values
  2. Perform logical operation on the boolean value
  3. Return a value
  4. None

Answer: B) Perform logical operation on the boolean value

Explanation:

Logical operators, logical-or (|| and | ) and logical-and (&& and &) take Boolean operands and evaluate to a Boolean result.

Comments and Discussions!

Load comments ↻






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