Confusion about thread safety - SimpleDateFormat example

后端 未结 7 1156
野的像风
野的像风 2021-01-02 03:57

I have a question about thread safety. From what I have been told, SimpleDateFormat is not thread safe. I was wondering what effects it would have if I use it the followin

7条回答
  •  忘掉有多难
    2021-01-02 04:34

    Personally, I would avoid all these issues by just using JodaTime. The API is much richer, it doesn't have the threading issues, and it's a lot faster.

提交回复
热议问题