爲什麼Java的SimpleDateFormat不是線程安全的? [重複] - Why is Java's SimpleDateFormat not thread-safe? [duplicate]

問題:

This question already has an answer here: 這個問題在這裏已有答案:

Please tell with a code example why is SimpleDateFormat not threadsafe. 請告訴代碼示例爲什麼SimpleDateFormat不是線程安全的。 What is the problem in this class? 這堂課有什麼問題? Is The problem with format function of SimpleDateFormat ? SimpleDateFormat的格式功能有問題嗎? Please give a code which demonstrates this fault in class. 請給出一個在課堂上演示此錯誤的代碼。

FastDateFormat is threadsafe. FastDateFormat是線程安全的。 Why? 爲什麼? what is the difference b/w the SimpleDateFormat and FastDateFormat? b / w SimpleDateFormat和FastDateFormat有什麼區別?

Please explain with a code which demonstrates this issue? 請用解釋此問題的代碼解釋一下?


解決方案:

參考一: https://stackoom.com/question/ShbX
參考二: Why is Java's SimpleDateFormat not thread-safe? [duplicate]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章