I have a class A and utility class B.B has all public static methods which takes needed parameters( obj1,obj2 or obj3 ) to do validation checks on passed objects. System would be have more class like A (A1,A2 ...)and at run time there will lot of objects like A,A1.... We never create object of B, all other objects call static methods on B to get the validations done.
My question is, whether there will be any problem with threading/or anything like that at run time. To make it more clear, if same method of B is accessed by different objects of A at same time?
problems might occur if your thread are trying to access shared data. eg. if you have some static variables (not final) in your class B, which the threads have access to, then you would need to synchronize access to that static data.