Core Java
-
Building OpenJDK on Windows
Doing some experiments, I found that it often useful to have JDK source code available in hand to make some…
Read More » -
Java Annotations – Retention
Consider a Java annotation: public @interface AnAnnotaton { } A class with this annotation applied on it: @AnAnnotaton class AnAnnotatedClass{…
Read More » -
A Generic and Concurrent Object Pool
In this post we will take a look at how we can create an object pool in Java. In recent…
Read More » -
Java: Choosing the right Collection
Here is a quick guide for selecting the proper implementation of a Set , List , or Map in your application. The best general purpose or…
Read More » -
Common code violations in Java
At work, recently I did a code cleanup of an existing Java project. After that exercise, I could see a…
Read More » -
Java Memory Profiling Simplified
As a typical Java developer I never monitored the memory usage of my application apart from following typical best practices…
Read More » -
Changing delay, and hence the order, in a DelayQueue
So I was looking at building a simple object cache that expires the objects after a given time. The obvious…
Read More » -
Project Jigsaw: The Consequences of Deferring
Mr. Mark Reinhold has announced in July 2012 that they were planning to withdraw Project Jigsaw from Java 8 because…
Read More » -
Resource Bundle Tricks and Best Practices
Today is resource bundle day. This is the most well known mechanism for internationalization (i18n) in Java in general. Working…
Read More »