Regarding the Lock associated with an object
Hi all,
suppose we are having an object with 2 synchronized methods and this object is being shared by two threads. Suppose, if the first thread access one synchronized method and the second thread access the other synchronized method, then my doubt is whether any one of these threads needs to wait to get the lock or they can execute at the same time?

