How to use SimpleDateFormat in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Working with DateFormat in a multithreading environment can be tricky. The Java API documentation clearly states Date formats are not synchronized. It

Statistics

  • Total Hits - 27248

  • Total Votes - 108 votes

  • Vote Up - 49 votes

  • Vote Down - 59 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-07-14 14:19:05

Description

Working with DateFormat in a multithreading environment can be tricky. The Java API documentation clearly states
Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements