Browsing the archives for the java tag.

Java – Not A Number Gotcha

Examples

java

There are always subtle nuances to every computer language. Recently, I found the following NaN (not a number) nuance in Java:

Bad:

if (value == Double.NaN)
    // Do something...

Good:

if (Double.isNaN(value))

    // Do something....
2 Comments

BDB JE – Locks, Blocks and Deadlocks

Misc

Below is a handy reference link about BDB JE (Berkeley Database Java Edition) locks, blocks and transactions:

After running some tests, we were amazed by the performance of the concurrent locking mechanism in BDB JE.

No Comments