Is simpledateformat safe to use in the multithreaded program?
Answer / Sreekant Singh Yadav
SimpleDateFormat is not thread-safe in Java. If you need to use it in a multithreaded environment, you should synchronize access to the same SimpleDateFormat instance or use a thread-safe alternative like SimpleDateFormatFormat.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?
What is proper subset?
What is the benefit of using enum to declare a constant?
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing?
what are Hostile Applets?
How will you measure that int takes up only 32 bits in memory?
What is a programming object?
How to access a method that it declared as protected?
What is string data?
What is threaded programming and when is it used? : Java thread
String is mutable or immutable?
What are different exception types exceptions available in java ?