Answer:
a.
Step-by-step explanation:
The private variable x is static, so synchronizing on object instances doesn't add any real protection.
If multiple objects of the class exist, they can still simultaneously run doSomething() and mess up the shared x.
By making doSomething() static, there is only one instance of it and indeed access to x would become thread safe.