Saved Bookmarks
| 1. |
What Kind Of Variable You Can Access In An Lambda Expression? |
|
Answer» Using lambda expression, you can refer to final variable or effectively final variable (which is ASSIGNED only once). Lambda expression throws a COMPILATION error, if a variable is assigned a VALUE the second TIME. Using lambda expression, you can refer to final variable or effectively final variable (which is assigned only once). Lambda expression throws a compilation error, if a variable is assigned a value the second time. |
|