Java 8
-
Core Java
Default methods and multiple inheritance
Recently Lukas JOOQ Eder posted and article about nested classes and their use. This is an interesting topic and his…
Read More » -
Core Java
Java8 Multi-threading ForkJoinPool: Dealing with exceptions
One of the main motivations behind the introduction of Java8 lambdas was the ability to be able to use multicores…
Read More » -
Core Java
Java 8 Optional is not just for replacing a null value
Overview In Java 8, you can return an Optional instead of return null; as you might do in Java 7.…
Read More » -
Core Java
Everything You Need To Know About Default Methods
So, default methods… yesterday’s news, right? Yes but after a year of use, a lot of facts accumulated and I…
Read More » -
Core Java
Reason for Slower Reading of Large Lines in JDK 7 and JDK 8
I earlier posted the blog post Reading Large Lines Slower in JDK 7 and JDK 8 and there were some…
Read More » -
Core Java
Java8 Lambdas: Sorting Performance Pitfall EXPLAINED
Written in collaboration with Peter Lawrey. A few days ago I raised a serious problem with the performance of sorting…
Read More » -
Core Java
How to Translate SQL GROUP BY and Aggregations to Java 8
I couldn’t resist. I have read this question by Hugo Prudente on Stack Overflow. And I knew there had to…
Read More » -
Core Java
The Decorator Pattern With Java 8
In a recent post I described how the decorator pattern saved my day. I gave a small code snippet which…
Read More » -
Core Java
Java 8 Functional Programming: Lazy Instantiation
Singletons often instantiate themselves lazily, and sometimes, if the object is heavy enough, class fields can be instantiated lazily. Generally,…
Read More »