Core Java
-
instanceof operator and Visitor pattern replacement in Java 8
I had a dream where instanceof operator and downcasting were no longer needed but without clumsiness and verbosity of visitor…
Read More » -
Java Auto-Unboxing Gotcha. Beware!
What do you think that the following code snippet will print? …
Read More » -
Too Many Parameters in Java Methods, Part 1: Custom Types
I consider lengthy parameters lists in constructors and methods to be another “red flag” in Java development that may not…
Read More » -
Stacks and Queues in Java
I have been working on some Java code recently that required both a stack and a queue. The choices to…
Read More » -
Unique hashCodes is not enough to avoid collisions
There is a common misconception that if you have unique hashCode() you won’t have collisions. While unique, or almost unique,…
Read More » -
Write an auto-debugger to catch Exceptions during test execution
Previously I have stated that there are some exceptions you would always want to keep an debugger breakpoint on for.…
Read More » -
Java Object to Object Mapper
I’ve been using Dozer some time on the project. But, recently I have got very interesting error which motivates me…
Read More » -
JavaOne 2013 Vicariously
I was disappointed that I was not able to attend JavaOne 2013, but was happy to see numerous useful posts…
Read More » -
Travel Report: JavaOne 2013 – Back To Glory
I’m back since a few days already and needed to catch up with all the things which had been on…
Read More »