Right. Even if its a StringBuffer, because its shared between different threads. If there are 4 statements modifying the stringBuffer object with first statement resetting it inside the method concatenateStrings and one thread loses control after executing 2nd statement and another thread starts at 1st statement and resets the buffer, we lost the modification done by thread one.
Campbell Ritchie wrote:Come to thin of it: would a StringBuffer lose its thread‑safety as a static field?
Mohammed Sardar. wrote:Abhishk, If we don't bother to use append method in return, we we should not try and see with StringBuffer which is fail-safe too ?
Only a suggestion.Please add your thoughts to it if there is any impact.
Campbell Ritchie wrote:That is mistaken, I am afraid. Strings aren't primitives. The name of the method looks misleading, too.
Sanurag Dharme wrote:
but then its giving me following error when I am trying to access the database from sql developer
So if my database is installed on machine A and I want to access database form machine B. Then I have to provide machine A's IP address right??
do I need to install Oracle client on machine B
If you want a "universal" UI for all mobile devices using HTML without considering alternative rendering systems, the key is in using proper layout components and appropriate CSS skins.