Core Java
-
Java 9 Additions To Stream
Java 9 is coming! And it is more than just Project Jigsaw. (I was surprised, too.) It is bringing a…
Read More » -
Java Arrays Sort decoded
Sorting is one the first algorithm that we learn in computer science. Sorting is such an interesting area that it…
Read More » -
Creating Value Objects with Immutables
In response to my recent post AutoValue: Generated Immutable Value Classes, Brandon suggested that it might be interesting to see…
Read More » -
Java 8: Default Method Resolution Rules
With the introduction of default methods in Java 8, it is now possible for a class to inherit the same…
Read More » -
The Truth Behind the Big Exceptions Lie
Exceptions are probably the most misused Java language feature. Here’s why Let’s break some myths. There is no tooth fairy.…
Read More » -
Conjunctions we… hate
Recently I’ve written about implementation-related names and I’ve presented a few examples where the method name was incorrect because of…
Read More » -
AutoValue: Generated Immutable Value Classes
The Google GitHub-hosted project AutoValue is interesting for multiple reasons. Not only does the project make it easy to write…
Read More » -
How To Implement hashCode Correctly
So you’ve decided that identity isn’t enough for you and wrote a nice equals implementation? Great! But now you have…
Read More » -
Java 8: Converting Anonymous Classes to Lambda Expressions
Refactoring anonymous classes (that implement one single method) to lambda expressions, makes your code more succint and readable. For example,…
Read More »