Variable which is “effectively final” in Java 8
Java 8 has an interesting feature that I learnt recently. A variable can become “effectively final”. Very useful. For instance, the following class would not compile in Java 1.7. It would return the following error : “Cannot refer to the non-final local variable myVocabulary defined in an enclosing scope”. It would require to add the … Read more