Answer Posted / Lalit Kumar Saini
A closure in Scala is a function that has access to the variables of its outer function, even when the outer function has returned. This allows inner functions to refer to and manipulate variables defined in their surrounding context.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers