Bye, thread safety on java Date & SimpleDateFormat

I used to be pulled into various issue troubleshooting. Several occurrences are related to SimpleDateFormat & java.util.Date from various different developers and teams.

It’s not rocket science for most of experienced developers. But for some new programmer, it is one of the most messed up places.

Now Java 8 is moving these to immutable. Java 8 java.time core date related classes are immutable:

(I guess Scala’s popularity nowadays should not be a surprise.)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s