Category Archives: Uncategorized

javaeffective.wordpress.com is now effective-java.com

Standing still is going backwards. That’s why I decided to move to my own domain and take matters into my own hand. If you miss a feature on the website you can leave a comment here any time.

Posted in Uncategorized | Tagged | Leave a comment

Simple LRU or FIFO Cache

There is a very simple way to make a FIFO or LRU cache with the existing LinkedHashMap implementation of the default Java VM made by Joshua Bloch. The LinkedHashMap already has a method you can override, which defines when to … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Autoboxing: Traps and Advantages

What is ‘autoboxing’ some people might ask? Autoboxing is a feature, which was added in Java 5. Autoboxing is the automatic conversion of primitive data types like int, double, long, boolean to its wrapper Object Integer, Double… and vice versa. … Continue reading

Posted in common practice, Java, Performance, Uncategorized | Tagged , , , , | Leave a comment

Hello world!

There has to be a Hello World 😀

Posted in Uncategorized | Leave a comment