Tag: SimpleDateFormat

Java SimpleDateFormat and Thread Safety

Multi-threading is always a challenge when developing large-scale applications. In Java, the SimpleDateFormat class is wonderfully easy to use, but can be spectacularly dangerous and unpredictable in a multi-threaded application. The use of the SimpleDateFormat class as a static data member or in an enum are important to safeguard. Wrapping it in a thread-safe class […]