I have a kind of doubt, suppose I have a class like this:
public class AA{
public static createUser(String a, int b){
User usr=new User(a,b);
BB.storeUser(usr);
}
}
Now, if multiple threads call this createUser() method of this class at the same time, will it cause any kind of problem. Do I need to make it synchronous? It is not going to do any sophisticated task, it will just create a User object and call a function to store it.