Core Java
-
JUnit: Testing Exceptions with Java 8 and AssertJ 3.0.0
AssertJ 3.0.0 release for Java 8 makes testing exceptions much easier than before. In one of my previous blog post…
Read More » -
Using Rhino with Java 8
Java brings Nashorn as new JavaScript implementation for JSR 223 (javax.scripting). While this is certainly great news (Nashorn is way…
Read More » -
The JDK 8 SummaryStatistics Classes
Three of the new classes introduced in JDK 8 are DoubleSummaryStatistics, IntSummaryStatistics, and LongSummaryStatistics of the java.util package. These classes…
Read More » -
Dealing with Interruptions
I was just watching the VJUG interview with Heinz Kabutz which inspired me to write a post about Interruptions. By…
Read More » -
Getting Rid Of Anonymous Classes
I really enjoy writing and reading lambda expressions – they’re succinct, expressive and fashionable (come on, like that doesn’t matter…
Read More » -
Design Patterns in the 21st Century: The Adapter Pattern
This is part three of my talk, Design Patterns in the 21st Century. The Adapter pattern bridges worlds. In one…
Read More » -
Design Patterns in the 21st Century: The Abstract Factory Pattern
This is part two of my talk, Design Patterns in the 21st Century. This pattern is used everywhere in Java…
Read More » -
Interface Evolution With Default Methods – Part II: Interfaces
Default methods were introduced to enable interface evolution. If backwards compatibility is sacrosanct, this is limited to adding new methods…
Read More » -
Java 8 Lambdas in One Line
If you understand this line, or better still can write this code you can pretty much say that you have…
Read More »