Hello,
I have another confusion, when we say that we are synchronizing a static method, we get a class lock and any other
thread has to wait, before the lock is release. Do the same lock also occurs in case of static data members or only
methods?
Arhaan