I'm wondering if a conditional expression is a thread safe operation in Java.
E.g.:
return (mObject != null ? mObject.toString() : "null");
So, my question is: If two threads can change mObject, is this code thread safe, or does the developer need to handle any race conditions?