Core Java
-
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 » -
BTrace: hidden gem in Java developer toolbox
This post is about BTrace which I am considering as a hidden gem for Java developer. BTrace is a safe,…
Read More » -
Java 7: HashMap vs ConcurrentHashMap
As you may have seen from my past performance related articles and HashMap case studies, Java thread safety problems can…
Read More » -
Which Java thread consumes my CPU?
What do you do when your Java application consumes 100% of the CPU? Turns out you can easily find the…
Read More »