If a class A is having a public static method which is tagged by ‘synchronized’ keyword, then Is there a possibility to have class level lock?
When there is a lock in such class, Can We instantiate object of that class or it has nothing to do with instantiation?
Yes, there would be a class level lock on class A.
When there is a lock on a static method, it only affects other synchronized static methods. You can still create a new instance of that class.