Why is Java’s SimpleDateFormat not thread-safe? [duplicate]

Please tell with a code example why is SimpleDateFormat not threadsafe. What is the problem in this class?
Is The problem with format function of SimpleDateFormat?
Please give a code which demonstrates this fault in class.

FastDateFormat is threadsafe. Why?
what is the difference b/w the SimpleDateFormat and FastDateFormat?

Please explain with a code which demonstrates this issue?

9 Answers
9

Leave a Comment