Core Java
-
Walking Recursive Data Structures Using Java 8 Streams
The Streams API is a real gem in Java 8, and I keep finding more or less unexpected uses for…
Read More » -
The Java Legacy is Constantly Growing
I’ve recently stumbled upon a very interesting caveat of the JDK APIs, the Class.getConstructors() method. Its method signature is this:…
Read More » -
Mapreduce in Java8
Wordcount is to Mapreduce what “Hello world” is for rest of the programming world. Recently I have been exploring some…
Read More » -
Avoid Recursion in ConcurrentHashMap.computeIfAbsent()
Sometimes we give terrible advice. Like in that article about how to use Java 8 for a cached, functional approach…
Read More » -
How to Map Distinct Value Types Using Java Generics
Occasionally the average developer runs into a situation where he has to map values of arbitrary types within a particular…
Read More » -
Create your own AOP in Java
Introduction As you know AOP is one of the best features provided by Spring framework which provides utmost flexibility while…
Read More » -
Interface Evolution With Default Methods – Part I: Methods
A couple of weeks back we took a detailed look into default methods – a feature introduced in Java 8…
Read More » -
Using Java 8 Lambda expressions in Java 7 or older
I think nobody declines the usefulness of Lambda expressions, introduced by Java 8. However, many projects are stuck with Java…
Read More » -
Utility Classes Have Nothing to Do With Functional Programming
I was recently accused of being against functional programming because I call utility classes an anti-pattern. That’s absolutely wrong! Well,…
Read More »