captured variable
A local variable from the surrounding method that a lambda uses; the lambda keeps a copy of its value.
A local variable or parameter of an enclosing method referenced from a lambda body; it must be final or effectively final, and the lambda object holds its value.
See also