<p>I have heard that closures could be introduced in the next Java standard that is scheduled to be released somewhere around next summer. </p>

<p>What would this syntax look like?</p>

<p>I read somewhere that introducing closures in java is a bigger change than generic was in java 5. Is this true? pros and cons?</p>

<p>(By now we definitely know that closures not will be included in the next Java release)</p>

<p>OR </p>

<p><strong>edit: <a href="http://puredanger.com/tech/2009/11/18/closures-after-all/" rel="noreferrer">http://puredanger.com/tech/2009/11/18/closures-after-all/</a> :D</strong></p>

<p><strong>edit2: Re-thinking JDK7: <a href="http://blogs.oracle.com/mr/entry/rethinking_jdk7" rel="noreferrer">http://blogs.oracle.com/mr/entry/rethinking_jdk7</a></strong></p>

<p><strong>edit3: There’s not a moment to lose!: <a href="http://blogs.oracle.com/mr/entry/quartet" rel="noreferrer">http://blogs.oracle.com/mr/entry/quartet</a></strong></p>

Have a look at
http://www.javac.info/
.
It seems like this is how it would look:
```
```
boolean even = { int x => x % 2 == 0 }.invoke(15);
```
```
where the
```
{ int x => x % 2 == 0 }
```
bit is the closure.