SimpleDateFormat in Java very common and used to format Date to String and parse String into Date in Java but it can cause very subtle and hard to debug issues if not used carefully because DateFormat and SimpleDateFormat both are not thread-safe and buggy. call to format() and parse() method mutate state of DateFormat class and should be synchronized externally in order to avoid any issue. here are few points which you should take care while using SimpleDateFormat in Java:
Jumat, 23 Maret 2012
core java
SimpleDateFormat in Java is not Thread-Safe Use Carefully
Read more »
0 Response to "SimpleDateFormat in Java is not Thread-Safe Use Carefully"
Posting Komentar