Answer Posted / Parul Mishra
A Scala closure is an inner function that has access to the outer function's variables. In other words, a closure in Scala is a function that can 'remember' and continue to use its enclosing function's scope even when it is executed outside its immediate lexical scope.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers