varshare & followShare this post with your community:I'm active on various platforms. Watch this space or follow me there to get notified when I publish new content:▼s+fShare this post with your community:I'm active on various platforms. Watch this space or follow me there to get notified when I publish new content:Fun With var#talk#anonymous‑classes #default‑methods #generics #lambda #java‑10 #varA live-coding talk where I show off all you need to know about var in Java. And then some.2018-11-08Unlocking Traits With var#post#default‑methods #java‑10 #lambda #varIn Java 10, var makes it is possible to ad-hoc combine traits into an instance that matches your exact requirements. Alas, it has some downsides.2018-06-25Tricks with var and anonymous classes (that you should never use at work)#post#anonymous‑classes #java‑10 #varLocal-variable type inference with var makes it easier to work with anonymous classes, e.g. for ad-hoc fields and methods. Don't do it, though!2018-06-18Unlocking Intersection Types With var#post#generics #java‑10 #varJava 10's var makes intersection types in Java more approachable. Generics tricks are still needed, but var makes it easy to declare such variables.2018-06-11First Contact With 'var' In Java 10#post#java‑10 #java‑basics #varJava 10 introduces the var keyword, which lets the compiler infer local variable types. Here's how var works, why it exists, how it impacts readability.2017-11-16First contact with var in Java 10#video#java‑10 #varHow to use var, where it works and where it doesn't (and why), and how it might impact readability2017-11-16