Core Java
-

Using Delayed queues in practice
Often there are use cases when you have some kind of work or job queue and there is a need…
Read More » -

Why Math.round(0.499999999999999917) rounds to 1 on Java 6
Overview There are two types of error representation error and arithmetic rounding error which are common in floating point calculations.…
Read More » -

Java 7 #8: NIO.2 File Channels on the test bench
Another blog post about new JDK 7 features. This time I am writing about the new AnsynchronousFileChannel class. I am…
Read More » -

Exception Handling Guidelines & Best Practices
Let’s review some basic exception design guidelines, summarized from Object Design: Roles, Responsibilities, and Collaborations (Rebecca Wirfs-Brock and Alan McKean,…
Read More » -

Java 7’s Support for Suppressed Exceptions
A new constructor and two new methods were added to the Throwable class (parent of Exception and Error classes) in…
Read More » -

Seven NetBeans Hints for Modernizing Java Code
In the post Seven Indispensable NetBeans Java Hints, I talked about using NetBeans hints in general and then focused on…
Read More » -

Java 7 – Project Coin Decompiled
Hi all, it’s time to start writing in 2012. As you may have seen already in other blogs, there are…
Read More » -

Java Heap Space – JRockit and IBM VM
This article will provide you with an overview of the JRockit Java Heap Space vs. the HotSpot VM. It will…
Read More » -

JVM: How to analyze Thread Dump
This article will teach you how to analyze a JVM Thread Dump and pinpoint the root cause of your problem(s).…
Read More »

