Category Archives: Java Basics

Testing for SimpleDateFormat thread safety

Declaring an instance of SimpleDateFormat as a constant (static final class member) is usually bad. But then again, it’s a very obvious thing to do.

Currency and BigDecimal

When deciding how to represent numbers (decimal or otherwise) we must first know if we are dealing with approximate or exact numbers.

Bean introspection

Have a naming convention or don’t. But if you do have one, don’t stick some obscure fudge in there. Hacks and fudges will catch up with you and bite you in the bottom.