JAX TV

Funktionale Interfaces und Mixins in Java 8

Redaktion JAXenter

Es ist wieder einmal soweit: Die W-JAX startet diese Woche mit ihren traditionellen Montags-Workshops. Zur Einstimmung auf die morgige Hauptkonferenz haben wir für Sie ein besonderes Video-Schmankerl herausgesucht: Heinz Kabutz verrät Tipps und Tricks zur Arbeit mit funktionalen Interface und Mixins in Java 8. Viel Spaß!

Bleiben Sie diese Woche dran – denn JAXenter berichtet live von der W-JAX 2015. Hintergrundberichte, Session-Mitschnitte, Interviews & Artikel sind garantiert!

Java 8 – Understanding Functional Interfaces and Writing Mixins from JAX TV on Vimeo.

Java 8 was launched in March 2014 with great fanfare. The new lambda syntax allows us to have a more succinct coding style and get rid of a lot of boilerplate code. However, there is also confusion. Even the “State of the Lambdas” paper starts by comparing lambdas to ActionListener. Even though that is indeed a functional interface, its related listeners such as MouseListener are not. In this talk, Heinz will show a number of interfaces and let the audience decide whether of not it qualifies as a functional interface. We end off the talk with a short demo of how we can write mixins in Java, by combining functional interfaces with default methods.

Dr. Heinz Kabutz is best known for his creation of The Java Specialists‘ Newsletter, read in 134 countries by 70000 Java experts.  In his newsletter, he examines advanced aspects of Java that have helped Java developers around the world to produce better code. As someone remarked on the Sun website: „Heinz Kabutz is a hero in the Java Developer Community. His newsletters have saved companies millions by helping burgeoning and experienced programmers deliver high quality products.“

Verwandte Themen:

Geschrieben von
Kommentare

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.