Closures in Scala are –

82. Closures in Scala are -

  1. Functions that return multiple values
  2. Functions that can accept variable arguments
  3. Functions that use a value from outside of the function's body
  4. None of these

Answer: C) Functions that use a value from outside of the function's body

Explanation:

The Scala Closures are functions which uses one or more free variables and the return value of this function is dependent of these variable.

Comments and Discussions!

Load comments ↻






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